This commit is contained in:
张江玮
2023-10-13 16:03:20 +08:00
parent 59309fda3a
commit d066787439
10 changed files with 151 additions and 64 deletions

View File

@@ -328,6 +328,10 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
HnjSendMaterialTask taskBean = SpringContextHolder.getBean(HnjSendMaterialTask.class);
taskBean.createTask(param); // 创建任务
} else if (StrUtil.equals(type, "3")) {
JSONArray schBaseTask = WQLObject.getWQLObject("sch_base_task").query("is_delete = '0' AND task_type = 'yljcallm' AND task_status <> '7'").getResultJSONArray(0);
if (!schBaseTask.isEmpty()) {
throw new BadRequestException("有其它正在执行的压机叫料任务!");
}
// 3.压力机叫料
JSONObject param = new JSONObject();
param.put("point_code2", point_code);