|
|
@@ -53,11 +53,13 @@ public class AutoDockItemService extends ServiceController {
|
|
|
if(!itemRowsMapAll.containsKey(jsonObject.getString("fitemno"))){
|
|
|
long itemid = createTableID("plm_item");
|
|
|
SQLFactory sqlFactory = new SQLFactory(new Item(jsonObject), "货品档案新增");
|
|
|
+
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("itemid", createTableID("plm_item"));
|
|
|
sqlFactory.addParameter("username", "admin");
|
|
|
sqlFactory.addParameter("userid", 1);
|
|
|
sqlFactory.addParameter("itemno", jsonObject.getString("fitemno"));
|
|
|
+ sqlFactory.addParameter("marketingcategory", "");
|
|
|
if(unitRowsMap.containsKey(jsonObject.getString("funit"))){
|
|
|
sqlFactory.addParameter("unitid", unitRowsMap.get(jsonObject.getString("funit")).get(0).getLong("unitid"));
|
|
|
}else {
|
|
|
@@ -127,6 +129,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");
|
|
|
|
|
|
|
|
|
sqlList.add(sqlFactory.getSQL());
|