|
|
@@ -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");
|