fix: 暂存到内包间只校验起点任务
This commit is contained in:
@@ -1017,7 +1017,7 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
// param: point_code
|
// param: point_code
|
||||||
String pointCode = param.getString("point_code");
|
String pointCode = param.getString("point_code");
|
||||||
// 校验是否存在任务
|
// 校验是否存在任务
|
||||||
List<SchBaseTask> taskList = taskService.checkHaveTask(pointCode);
|
List<SchBaseTask> taskList = taskService.checkHaveStartTask(pointCode);
|
||||||
if (taskList.size() > 0) {
|
if (taskList.size() > 0) {
|
||||||
throw new BadRequestException("操作失败,点位[" + pointCode + "]存在未完成的任务!");
|
throw new BadRequestException("操作失败,点位[" + pointCode + "]存在未完成的任务!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user