fix: 管制点送空架子任务校验

This commit is contained in:
2025-01-15 10:21:39 +08:00
parent 8f44a92156
commit df5d239a67

View File

@@ -1066,6 +1066,7 @@ public class BstIvtPackageinfoivtServiceImpl extends ServiceImpl<BstIvtPackagein
task.put("point_code1", of.get(pointCode));
int count = taskService.count(new QueryWrapper<SchBaseTask>()
.eq("is_delete", "0")
.eq("point_code1", of.get(pointCode))
.lt("task_status", TaskStatusEnum.FINISHED.getCode()));
if (count>0){
throw new BadRequestException("当前人工管制点已经存在任务,请勿重复下发");