opt: 生箔工单大车车号设置

This commit is contained in:
2024-11-07 11:12:55 +08:00
parent 18e0044809
commit b0da486f75

View File

@@ -329,6 +329,7 @@ public class RawFoilServiceImpl implements RawFoilService {
WQLObject rawTab = WQLObject.getWQLObject("PDM_BI_RawFoilWorkOrder"); // 生箔工单表
WQLObject sbTab = WQLObject.getWQLObject("ST_IVT_SbPointIvt"); // 生箔点位库存表
JSONObject device_jo = sbTab.query("point_code = '" + whereJson.getString("point_code") + "'").uniqueResult(0);
String bigType = whereJson.getString("big_type");
// 插入生箔工序工单表
JSONObject json = new JSONObject();
json.put("workorder_id", IdUtil.getSnowflake(1, 1).nextId());
@@ -351,6 +352,9 @@ public class RawFoilServiceImpl implements RawFoilService {
json.put("create_id", "1");
json.put("create_name", "管理员");
json.put("create_time", DateUtil.now());
if (ObjectUtil.isNotEmpty(bigType) && "1".equals(bigType)) {
json.put("agvno", "99");
}
rawTab.insert(json);
JSONObject jsonSb = sbTab.query("point_code = '" + whereJson.getString("point_code") + "'").uniqueResult(0);
@@ -381,7 +385,6 @@ public class RawFoilServiceImpl implements RawFoilService {
start_pint_code = jsonIvt.getString("empty_point_code");
point_code4 = jsonIvt.getString("full_point_code");
}
String bigType = whereJson.getString("big_type");
// 起点和终点确定 生成任务
JSONObject param = new JSONObject();
param.put("point_code1", start_pint_code);