Explorar o código

自动同步商品档案更新调整

eganwu %!s(int64=2) %!d(string=hai) anos
pai
achega
992fa82d6b
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      src/custom/service/AutoDockItemService.java

+ 9 - 1
src/custom/service/AutoDockItemService.java

@@ -135,7 +135,7 @@ public class AutoDockItemService extends ServiceController {
                         sqlFactory.addParameter("financeclasstype", jsonObject.getStringValue("fdescription"));
                         sqlFactory.addParameter("stockno", jsonObject.getStringValue("fstockno"));
                         sqlFactory.addParameter("volume", jsonObject.getBigDecimalValue("fvolume"));
-                        sqlFactory.addParameter("pricingmetod", "1");
+                        sqlFactory.addParameter("pricingmetod", "2");
 
 
                         sqlList.add(sqlFactory.getSQL());
@@ -214,6 +214,14 @@ public class AutoDockItemService extends ServiceController {
                             updateSQL.setValue("unitid", 0);
                         }
                         updateSQL.setValue("spec", spec);//尺寸
+                        if(!iscustomsize){
+                            updateSQL.setValue("sa_customschemeid", 0);
+                            updateSQL.setValue("materialschemeid", 0);
+                            updateSQL.setValue("colorschemeid", 0);
+                            updateSQL.setValue("cheekschemeid", 0);
+                            updateSQL.setValue("widthschemeid", 0);
+                            updateSQL.setValue("lengthschemeid", 0);
+                        }
                         sqlList.add(updateSQL.getSQL());
 
                         UpdateSQL updateSQL2 = SQLFactory.createUpdateSQL(new DBConnect(), "plm_itemextend");