Quellcode durchsuchen

取出今天有入库花材

shish vor 3 Jahren
Ursprung
Commit
0287d0b0b5
1 geänderte Dateien mit 1 neuen und 5 gelöschten Zeilen
  1. 1 5
      app-ghs/controllers/ProductController.php

+ 1 - 5
app-ghs/controllers/ProductController.php

@@ -77,11 +77,10 @@ class ProductController extends BaseController
         util::complete();
         util::complete();
     }
     }
 
 
-    //今天有入库的花材 ssh 20221024
+    //取出今天有入库的花材 ssh 20221024
     public function actionStockIn()
     public function actionStockIn()
     {
     {
         $py = Yii::$app->request->get('py', '');
         $py = Yii::$app->request->get('py', '');
-
         $classIds = ItemClassClass::getGhsItemClassAll($this->mainId);
         $classIds = ItemClassClass::getGhsItemClassAll($this->mainId);
         $mainId = $this->mainId ?? 0;
         $mainId = $this->mainId ?? 0;
         $where['mainId'] = $mainId;
         $where['mainId'] = $mainId;
@@ -98,12 +97,9 @@ class ProductController extends BaseController
         $ids = array_unique($ids);
         $ids = array_unique($ids);
         $where['id'] = ['in', $ids];
         $where['id'] = ['in', $ids];
         $level = 1;
         $level = 1;
-
         $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
         $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
         $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
         $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
-
         $data = ProductService::assembleData($classIds, $itemInfoData, true);
         $data = ProductService::assembleData($classIds, $itemInfoData, true);
-
         util::success($data);
         util::success($data);
     }
     }