rev:内包间优化

This commit is contained in:
2024-01-08 08:58:14 +08:00
parent b413168cac
commit 6bbd9a33e5
2 changed files with 36 additions and 26 deletions

View File

@@ -1078,6 +1078,13 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
JSONObject container_jo2 = WQLObject.getWQLObject("pdm_bi_slittingproductionplan").query("container_name = '" + container_name2 + "'").uniqueResult(0); JSONObject container_jo2 = WQLObject.getWQLObject("pdm_bi_slittingproductionplan").query("container_name = '" + container_name2 + "'").uniqueResult(0);
rows.add(container_jo2); rows.add(container_jo2);
} }
//将穿拔轴位的库存清空
JSONObject cbj_jo = WQLObject.getWQLObject("st_ivt_shaftivt").query("product_area = '" + product_area + "' AND point_type = '0'").uniqueResult(0);
cbj_jo.put("qzz_size", "");
cbj_jo.put("qzz_generation", "");
cbj_jo.put("have_qzz", "0");
WQLObject.getWQLObject("st_ivt_shaftivt").update(cbj_jo);
JSONObject conrimd_jo = new JSONObject(); JSONObject conrimd_jo = new JSONObject();
conrimd_jo.put("qzzno", qzzno); conrimd_jo.put("qzzno", qzzno);
conrimd_jo.put("cut_rows", rows); conrimd_jo.put("cut_rows", rows);
@@ -1234,6 +1241,14 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
JSONObject point1_jo = ivt_shaftivt.query("point_code = '" + task_jo.getString("point_code1") + "'").uniqueResult(0); JSONObject point1_jo = ivt_shaftivt.query("point_code = '" + task_jo.getString("point_code1") + "'").uniqueResult(0);
point1_jo.put("have_qzz", "0"); point1_jo.put("have_qzz", "0");
ivt_shaftivt.update(point1_jo); ivt_shaftivt.update(point1_jo);
} else if ("010607".equals(point_type)) {
JSONObject point1_jo = ivt_shaftivt.query("point_code = '" + task_jo.getString("point_code1") + "'").uniqueResult(0);
point1_jo.put("qzz_size", "");
point1_jo.put("qzz_generation", "");
point1_jo.put("have_qzz", "0");
point1_jo.put("container_name1", "");
point1_jo.put("container_name2", "");
ivt_shaftivt.update(point1_jo);
} else { } else {
JSONObject point3_jo = ivt_shaftivt.query("point_code = '" + task_jo.getString("point_code3") + "'").uniqueResult(0); JSONObject point3_jo = ivt_shaftivt.query("point_code = '" + task_jo.getString("point_code3") + "'").uniqueResult(0);
point3_jo.put("have_qzz", "0"); point3_jo.put("have_qzz", "0");

View File

@@ -2,6 +2,7 @@ package org.nl.wms.sch.tasks;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@@ -170,16 +171,9 @@ public class PaperTrussTask extends AbstractAcsTask {
} }
//套轴气胀轴取货任务 //套轴气胀轴取货任务
if ("010607".equals(task_type)) { if ("010607".equals(task_type)) {
String point_code = task_jo.getString("point_code1");
JSONObject goal_point = ivt_shaftivt.query("point_code = '" + point_code + "'").uniqueResult(0);
goal_point.put("qzz_size", "");
goal_point.put("qzz_generation", "");
goal_point.put("have_qzz", "0");
goal_point.put("container_name1", "");
goal_point.put("container_name2", "");
ivt_shaftivt.update(goal_point);
String point_code2 = task_jo.getString("point_code2"); String point_code2 = task_jo.getString("point_code2");
JSONObject goal_point2 = ivt_shaftivt.query("point_code = '" + point_code2 + "'").uniqueResult(0); JSONObject goal_point2 = ivt_shaftivt.query("point_code = '" + point_code2 + "'").uniqueResult(0);
if (ObjectUtil.isNotEmpty(goal_point2)) {
JSONObject request_param = task_jo.getJSONObject("request_param"); JSONObject request_param = task_jo.getJSONObject("request_param");
String qzz_size = request_param.getString("need_size"); String qzz_size = request_param.getString("need_size");
String qzz_generation = request_param.getString("need_generation"); String qzz_generation = request_param.getString("need_generation");
@@ -195,6 +189,7 @@ public class PaperTrussTask extends AbstractAcsTask {
ivt_shaftivt.update(goal_point2); ivt_shaftivt.update(goal_point2);
} }
} }
}
map.put("update_optid", currentUserId); map.put("update_optid", currentUserId);
map.put("update_optname", nickName); map.put("update_optname", nickName);
map.put("update_time", now); map.put("update_time", now);