fix:子卷装箱任务数控制

This commit is contained in:
zhangzq
2025-01-04 08:53:50 +08:00
parent da3edc1ca1
commit 9444e5d997

View File

@@ -250,6 +250,7 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
int count = taskService.count(new QueryWrapper<SchBaseTask>()
.eq("point_code2", deviceCode)
.eq("task_type", "010704")
.eq("is_delete", "0")
.lt("task_status", TaskStatusEnum.FINISHED.getCode()));
if (count>2){
throw new BadRequestException("当前装箱区木箱任务已满,稍后再试");