fix:逻辑校验优化

This commit is contained in:
zhouz
2025-08-26 10:09:35 +08:00
parent 7ceae64eef
commit 76ddd010b7

View File

@@ -477,9 +477,6 @@ public class FeedingServiceImpl implements FeedingService {
}
}
CoolCutTask coolCutTask = SpringContextHolder.getBean(CoolCutTask.class);
String task_id = coolCutTask.createTask(jo);
//查询该母卷号对应的生箔信息
JSONObject raw_jo = WQLObject.getWQLObject("pdm_bi_rawfoilworkorder").query("container_name = '" + cool_jo.getString("container_name") + "'").uniqueResult(0);
if (ObjectUtil.isEmpty(raw_jo)) {
@@ -491,6 +488,9 @@ public class FeedingServiceImpl implements FeedingService {
throw new BadRequestException("未查询到物料:" + raw_jo.getString("product_name") + "基础信息!");
}
CoolCutTask coolCutTask = SpringContextHolder.getBean(CoolCutTask.class);
String task_id = coolCutTask.createTask(jo);
//生成半成品出库单据
String currentUserId = SecurityUtils.getCurrentUserId();
String currentUsername = SecurityUtils.getCurrentUsername();