|
@@ -157,9 +157,7 @@ public class AutoDockItemService extends ServiceController {
|
|
|
sqlList.add(sqlFactory.getSQL());
|
|
|
|
|
|
}else{
|
|
|
- if(itemRowsMapAll.get(jsonObject.getString("fitemno")).get(0).getString("status").equals("新建")){
|
|
|
- sqlList.add("update plm_item set itemname='"+jsonObject.getString("fitemname")+"',volume='"+ jsonObject.getStringValue("fvolume")+"',packageqty='"+ (StringUtils.isBlank(jsonObject.getStringValue("fpackageqty"))?"0":jsonObject.getStringValue("fpackageqty"))+" where itemid="+itemRowsMapAll.get(jsonObject.getString("fitemno")).get(0).getLong("itemid"));
|
|
|
- }
|
|
|
+ sqlList.add("update plm_item set itemname='"+jsonObject.getString("fitemname")+"',volume='"+ jsonObject.getStringValue("fvolume")+"',packageqty='"+ (StringUtils.isBlank(jsonObject.getStringValue("fpackageqty"))?"0":jsonObject.getStringValue("fpackageqty"))+"' where itemid="+itemRowsMapAll.get(jsonObject.getString("fitemno")).get(0).getLong("itemid"));
|
|
|
}
|
|
|
|
|
|
}
|