opt:删除空载具任务判断

This commit is contained in:
zhangzq
2025-05-06 16:40:03 +08:00
parent b3ccdb44f4
commit bc30038ee2

View File

@@ -161,13 +161,6 @@ public class DjqToKzjhcwTask extends AbstractAcsTask {
throw new BadRequestException("下一点不能为空");
}
String pointCode3 = form.getString("point_code3");
int count = taskService.count(new QueryWrapper<SchBaseTask>()
.eq("is_delete", "0")
.eq("pointCode3", pointCode3)
.lt("task_status", TaskStatusEnum.FINISHED.getCode()));
if (count>0){
throw new BadRequestException(pointCode3+"当前点位已经存在任务");
}
//是否立即下发
boolean isSend = !StrUtil.isNotBlank(form.getString("is_send")) || BooleanUtil.toBoolean(form.getString("is_send"));
SchBaseTaskVO schBaseTaskVo = SchBaseTaskVO.builder()