fix:库存更新优化
This commit is contained in:
@@ -120,11 +120,17 @@ public class InHotTask extends AbstractAcsTask {
|
|||||||
if (ObjectUtil.isEmpty(jsonTask.getString("point_code3"))) {
|
if (ObjectUtil.isEmpty(jsonTask.getString("point_code3"))) {
|
||||||
|
|
||||||
if (jsonTask.getString("task_type").equals("010204")) {
|
if (jsonTask.getString("task_type").equals("010204")) {
|
||||||
|
//更新冷却区库存
|
||||||
JSONObject cool_jo = coolIvtTab.query("point_code = '" + jsonTask.getString("point_code2") + "'").uniqueResult(0);
|
JSONObject cool_jo = coolIvtTab.query("point_code = '" + jsonTask.getString("point_code2") + "'").uniqueResult(0);
|
||||||
cool_jo.put("full_point_status", "02");
|
cool_jo.put("full_point_status", "02");
|
||||||
cool_jo.put("cool_ict_status", "01");
|
cool_jo.put("cool_ict_status", "01");
|
||||||
cool_jo.put("container_name", jsonTask.getString("material_code"));
|
cool_jo.put("container_name", jsonTask.getString("material_code"));
|
||||||
coolIvtTab.update(cool_jo);
|
coolIvtTab.update(cool_jo);
|
||||||
|
//更新对接位库存
|
||||||
|
JSONObject dj_jo = pointTab.query("point_code = '" + jsonTask.getString("point_code1") + "'").uniqueResult(0);
|
||||||
|
dj_jo.put("point_status", "1");
|
||||||
|
dj_jo.put("material_code", "");
|
||||||
|
pointTab.update(dj_jo);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
@@ -148,7 +154,7 @@ public class InHotTask extends AbstractAcsTask {
|
|||||||
jsonPoint.put("container_name", "");
|
jsonPoint.put("container_name", "");
|
||||||
jsonPoint.put("full_point_status", "01");
|
jsonPoint.put("full_point_status", "01");
|
||||||
pointTab.update(jsonPoint);
|
pointTab.update(jsonPoint);
|
||||||
}else {
|
} else {
|
||||||
// 更新暂存区点位状态为空位
|
// 更新暂存区点位状态为空位
|
||||||
JSONObject jsonPoint = pointTab.query("point_code = '" + jsonTask.getString("point_code1") + "'").uniqueResult(0);
|
JSONObject jsonPoint = pointTab.query("point_code = '" + jsonTask.getString("point_code1") + "'").uniqueResult(0);
|
||||||
jsonPoint.put("point_status", "1");
|
jsonPoint.put("point_status", "1");
|
||||||
@@ -365,6 +371,7 @@ public class InHotTask extends AbstractAcsTask {
|
|||||||
json.put("task_status", TaskStatusEnum.START_AND_POINT.getCode());
|
json.put("task_status", TaskStatusEnum.START_AND_POINT.getCode());
|
||||||
json.put("point_code1", form.getString("point_code1"));
|
json.put("point_code1", form.getString("point_code1"));
|
||||||
json.put("point_code2", form.getString("point_code2"));
|
json.put("point_code2", form.getString("point_code2"));
|
||||||
|
json.put("material_code", form.getString("material_code"));
|
||||||
json.put("product_area", form.getString("product_area"));
|
json.put("product_area", form.getString("product_area"));
|
||||||
json.put("sort_seq", "1");
|
json.put("sort_seq", "1");
|
||||||
json.put("handle_class", THIS_CLASS);
|
json.put("handle_class", THIS_CLASS);
|
||||||
|
|||||||
Reference in New Issue
Block a user