Explorar el Código

序列号查询优化

shenjingwei hace 7 meses
padre
commit
02175fb445

+ 2 - 0
src/custom/restcontroller/webmanage/sale/toolscode/toolscode.java

@@ -299,9 +299,11 @@ public class toolscode extends Controller {
 
 
     @API(title = "查询商品序列号档案列表", apiversion = R.ID20221215101003.v1.class)
     @API(title = "查询商品序列号档案列表", apiversion = R.ID20221215101003.v1.class)
     public String queryToolscodeList() throws YosException {
     public String queryToolscodeList() throws YosException {
+        this.pageSorting = null;
         QuerySQL skuQuery = SQLFactory.createQuerySQL(this, "sa_itemsku").setTableAlias("t1");
         QuerySQL skuQuery = SQLFactory.createQuerySQL(this, "sa_itemsku").setTableAlias("t1");
         skuQuery.setPage(pageSize, pageNumber);
         skuQuery.setPage(pageSize, pageNumber);
         skuQuery.setWhere("siteid", siteid);
         skuQuery.setWhere("siteid", siteid);
+        skuQuery.setOrderBy("sa_itemskuid desc");
         if (content.containsKey("where")) {
         if (content.containsKey("where")) {
             JSONObject whereObject = content.getJSONObject("where");
             JSONObject whereObject = content.getJSONObject("where");
             if (!"".equals(whereObject.getStringValue("condition"))) {
             if (!"".equals(whereObject.getStringValue("condition"))) {