fix: 管制点送空架子任务校验
This commit is contained in:
@@ -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("当前人工管制点已经存在任务,请勿重复下发");
|
||||
|
||||
Reference in New Issue
Block a user