Browse Source

bug修复

hu 3 năm trước cách đây
mục cha
commit
048bfdcaa5
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      src/custom/restcontroller/sale/itemgroup/itemgroup.java

+ 2 - 3
src/custom/restcontroller/sale/itemgroup/itemgroup.java

@@ -422,9 +422,9 @@ public class itemgroup extends Controller {
             factory.addParameter_SQL("where", where);
         }
         rows = dbConnect.runSqlQuery(factory.getSQL());
-
+        String itemno="";
         if(!rows.isEmpty()){
-            content.put("itemno",rows.get(0).getString("itemno"));
+            itemno=rows.get(0).getString("itemno");
             for (Row row : rows) {
                 if(listParmBlank!=null && !listParmBlank.isEmpty()){
                     for (String value:listParmBlank) {
@@ -446,7 +446,6 @@ public class itemgroup extends Controller {
         /**
          * 查询商品明细
          */
-        String itemno = content.getString("itemno");
         SQLFactory sqlFactory = new SQLFactory(this, "查询商品详情", pageSize, pageNumber, pageSorting);
         sqlFactory.addParameter_SQL("where", "t2.itemno='" + itemno + "' ");
         sqlFactory.addParameter("itemno", itemno);