소스 검색

商品组优化

hu 2 년 전
부모
커밋
34c985b0f6
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      src/custom/restcontroller/sale/itemgroup/itemgroup.java

+ 1 - 5
src/custom/restcontroller/sale/itemgroup/itemgroup.java

@@ -252,11 +252,7 @@ public class itemgroup extends Controller {
         RowsMap itemclassRowsMap = rowsitemclass.toRowsMap("itemid");
         for (Row row : rows) {
             Rows itemRows = itemRowsMap.get(row.getString("itemid"));
-            if (!itemRows.isEmpty()) {
-                row.put("item",itemRows);
-            } else {
-                row.put("item", new Rows());
-            }
+            row.put("item",itemRows);
 
             Rows coverRows = coverRowsMap.get(row.getString("itemid"));
             if (coverRows.isEmpty()) {