opt:优化B1调度半条指令逻辑

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-03-07 17:59:51 +08:00
parent a2ae1457c6
commit dc4cb6017f
2 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,8 @@ public class AutoIntoHotCacheTask {
.eq(SchBaseTask::getIs_delete, "0")
.eq(SchBaseTask::getTask_status, TaskStatusEnum.SURE_START.getCode()));
for (SchBaseTask task : tasks) {
JSONObject cache_param = JSONObject.parseObject(task.getRequest_param());
JSONObject cache_param = JSONObject.parseObject(task.getRemark());
JSONObject cache_jo = WQL.getWO("PDA_COOLIN").addParamMap(cache_param).process().uniqueResult(0);
if (ObjectUtil.isEmpty(cache_jo) || ObjectUtil.isEmpty(cache_jo.getString("point_code"))) {
log.info("烘箱对接位:{} 没找到暂存位!", task.getPoint_code1());
@@ -48,7 +49,7 @@ public class AutoIntoHotCacheTask {
task.setUpdate_time(DateUtil.now());
task.setTask_type("010204");
taskService.updateById(task);
new InCoolIvtTask().immediateNotifyAcs(task.getTask_id());
new InHotTask().immediateNotifyAcs(task.getTask_id());
}
}
}

View File

@@ -228,14 +228,13 @@ public class CallEmpReelTask extends AbstractAcsTask {
jo.put("material_code", jsonTask.getString("material_code"));
jo.put("product_area", jsonTask.getString("product_area"));
jo.put("handle_class", InHotTask.class.getName());
jo.put("remark", "未查询到可用的冷却区暂存位");
jo.put("request_param", cache_param);
jo.put("remark", cache_param);
jo.put("type", "3");
jo.put("priority", "1");
jo.put("sort_seq", "1");
jo.put("create_time", DateUtil.now());
jo.put("acs_task_type", "6");
taskTab.insert(jo);
// throw new BadRequestException("未查询到可用的冷却区暂存位!");
} else {
JSONObject param = new JSONObject();
param.put("point_code1", point_code4);