|
|
@@ -170,10 +170,10 @@ public class AutoDockItemService extends ServiceController {
|
|
|
// sqlList.add("update plm_item set itemname='" + jsonObject.getString("fitemname") + "',volume='" + jsonObject.getStringValue("fvolume") + "',packageqty='" + (StringUtils.isBlank(jsonObject.getStringValue("fpackqty")) ? "0" : jsonObject.getStringValue("fpackqty")) + "' where itemid=" + itemRowsMapAll.get(jsonObject.getString("fitemno")).get(0).getLong("itemid"));
|
|
|
// System.out.println("update plm_item set itemname='" + jsonObject.getString("fitemname") + "',volume='" + jsonObject.getStringValue("fvolume") + "',packageqty='" + (StringUtils.isBlank(jsonObject.getStringValue("fpackqty")) ? "0" : jsonObject.getStringValue("fpackqty")) + "' where itemid=" + itemRowsMapAll.get(jsonObject.getString("fitemno")).get(0).getLong("itemid"));
|
|
|
Long itemid = itemRowsMapAll.get(jsonObject.getString("fitemno")).get(0).getLong("itemid");
|
|
|
- String spec = jsonObject.getString("spec");//尺寸
|
|
|
- String cheek = jsonObject.getString("fsizedescription");//工艺
|
|
|
- String material = jsonObject.getString("fmaterialdes");//选项
|
|
|
- String color = jsonObject.getString("fcolor");//颜色
|
|
|
+ String spec = jsonObject.getStringValue("spec");//尺寸
|
|
|
+ String cheek = jsonObject.getStringValue("fsizedescription");//工艺
|
|
|
+ String material = jsonObject.getStringValue("fmaterialdes");//选项
|
|
|
+ String color = jsonObject.getStringValue("fcolor");//颜色
|
|
|
boolean isonsale = true;
|
|
|
if (dbConnect.runSqlQuery("SELECT 1 FROM plm_item t1 LEFT JOIN plm_itemextend t2 ON t2.itemid=t1.itemid AND t2.siteid=t1.siteid " +
|
|
|
"WHERE spec='" + spec + "' AND cheek='" + cheek + "' AND material='" + material + "' AND color='" + color + "'").isEmpty()) {
|