eganwu 1 год назад
Родитель
Сommit
55d4accff1
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/custom/service/AutoDockItemService.java

+ 3 - 2
src/custom/service/AutoDockItemService.java

@@ -50,6 +50,7 @@ public class AutoDockItemService extends ServiceController {
             if (!jsonArray.isEmpty()) {
                 for (Object object : jsonArray) {
                     JSONObject jsonObject = (JSONObject) object;
+                    System.err.println(jsonObject);
                     if (!itemRowsMapAll.containsKey(jsonObject.getString("fitemno"))) {
                         long itemid = createTableID("plm_item");
                         SQLFactory sqlFactory = new SQLFactory(new Item(jsonObject), "货品档案新增");
@@ -192,7 +193,7 @@ public class AutoDockItemService extends ServiceController {
                             iscustomsize = true;
                         }
 
-                        UpdateSQL updateSQL = SQLFactory.createUpdateSQL(dbConnect, "plm_item");
+                        UpdateSQL updateSQL = SQLFactory.createUpdateSQL(new DBConnect(), "plm_item");
                         updateSQL.setWhere("itemid", itemid);
                         updateSQL.setSiteid(siteid);
                         updateSQL.setValue("isonsale", isonsale);
@@ -215,7 +216,7 @@ public class AutoDockItemService extends ServiceController {
                         updateSQL.setValue("spec", spec);//尺寸
                         sqlList.add(updateSQL.getSQL());
 
-                        UpdateSQL updateSQL2 = SQLFactory.createUpdateSQL(dbConnect, "plm_itemextend");
+                        UpdateSQL updateSQL2 = SQLFactory.createUpdateSQL(new DBConnect(), "plm_itemextend");
                         updateSQL2.setWhere("itemid", itemid);
                         updateSQL2.setSiteid(siteid);
                         updateSQL2.setValue("material", material);//颜色