载具清洗

This commit is contained in:
2022-06-27 16:35:38 +08:00
parent a28fffb3dc
commit a3163da733

View File

@@ -142,7 +142,7 @@ public class StoragevehicleextServiceImpl implements StoragevehicleextService {
WQLObject extTab = WQLObject.getWQLObject("md_pb_storagevehicleext"); WQLObject extTab = WQLObject.getWQLObject("md_pb_storagevehicleext");
JSONObject jsonObject = extTab.query("storagevehicle_id = '" + json.getString("storagevehicle_id") + "'").uniqueResult(0); JSONObject jsonObject = extTab.query("storagevehicle_id = '" + json.getString("storagevehicle_id") + "'").uniqueResult(0);
if (ObjectUtil.isEmpty(jsonObject)) { if (ObjectUtil.isEmpty(jsonObject)) {
//如果是空的就插入数据 并开启清洗 //如果是空的就插入数据
JSONObject jsonExt = new JSONObject(); JSONObject jsonExt = new JSONObject();
jsonExt.put("storagevehicleext_id", IdUtil.getSnowflake(1, 1).nextId()); jsonExt.put("storagevehicleext_id", IdUtil.getSnowflake(1, 1).nextId());
jsonExt.put("storagevehicle_id", json.getString("storagevehicle_id")); jsonExt.put("storagevehicle_id", json.getString("storagevehicle_id"));
@@ -152,7 +152,7 @@ public class StoragevehicleextServiceImpl implements StoragevehicleextService {
jsonExt.put("pcsn", json.getString("pcsn")); jsonExt.put("pcsn", json.getString("pcsn"));
jsonExt.put("storage_qty", json.getString("storage_qty")); jsonExt.put("storage_qty", json.getString("storage_qty"));
jsonExt.put("workordercard_id", json.getString("workordercard_id")); jsonExt.put("workordercard_id", json.getString("workordercard_id"));
jsonExt.put("is_need_clean", "1"); jsonExt.put("is_need_clean", "0");
jsonExt.put("device_uuid", json.get("device_uuid")); jsonExt.put("device_uuid", json.get("device_uuid"));
jsonExt.put("update_optid", SecurityUtils.getCurrentUserId()); jsonExt.put("update_optid", SecurityUtils.getCurrentUserId());
jsonExt.put("update_optname", SecurityUtils.getNickName()); jsonExt.put("update_optname", SecurityUtils.getNickName());
@@ -160,7 +160,6 @@ public class StoragevehicleextServiceImpl implements StoragevehicleextService {
extTab.insert(jsonExt); extTab.insert(jsonExt);
} else { } else {
//不为空为更新表 //不为空为更新表
jsonObject.put("is_need_clean", "1");
jsonObject.put("device_uuid", json.get("device_uuid")); jsonObject.put("device_uuid", json.get("device_uuid"));
jsonObject.put("update_optid", SecurityUtils.getCurrentUserId()); jsonObject.put("update_optid", SecurityUtils.getCurrentUserId());
jsonObject.put("update_optname", SecurityUtils.getNickName()); jsonObject.put("update_optname", SecurityUtils.getNickName());