opt:删除空载具任务判断
This commit is contained in:
@@ -161,13 +161,6 @@ public class DjqToKzjhcwTask extends AbstractAcsTask {
|
|||||||
throw new BadRequestException("下一点不能为空");
|
throw new BadRequestException("下一点不能为空");
|
||||||
}
|
}
|
||||||
String pointCode3 = form.getString("point_code3");
|
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"));
|
boolean isSend = !StrUtil.isNotBlank(form.getString("is_send")) || BooleanUtil.toBoolean(form.getString("is_send"));
|
||||||
SchBaseTaskVO schBaseTaskVo = SchBaseTaskVO.builder()
|
SchBaseTaskVO schBaseTaskVo = SchBaseTaskVO.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user