소스 검색

库存预警

shish 5 년 전
부모
커밋
d17906be24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app-ghs/controllers/ProductController.php

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

@@ -130,7 +130,7 @@ class ProductController extends BaseController
                 }
                 }
                 $lackIds = array_filter(array_unique($lackIds));
                 $lackIds = array_filter(array_unique($lackIds));
                 $where['id'] = ['in', $lackIds];
                 $where['id'] = ['in', $lackIds];
-                $respond = ProductClass::getList("*", $where, "actualSold asc");
+                $respond = ProductClass::getList("*", $where, "actualSold desc");
             } else {
             } else {
                 $respond = ProductClass::getList("*", $where, "inTurn desc");
                 $respond = ProductClass::getList("*", $where, "inTurn desc");
             }
             }