|
@ -141,6 +141,24 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa |
|
|
return schBaseTasks; |
|
|
return schBaseTasks; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Integer findUnFinishTasksByPoint_code1(String task_code, String point_code2) { |
|
|
|
|
|
Assert.notNull(point_code2, "点位不能为空!"); |
|
|
|
|
|
LambdaQueryWrapper<SchBaseTask> lam = new LambdaQueryWrapper<>(); |
|
|
|
|
|
lam.lt(SchBaseTask::getTask_status, TaskStatus.FINISHED.getCode()) |
|
|
|
|
|
.ne(ObjectUtil.isNotEmpty(task_code),SchBaseTask::getTask_code, task_code)// 不是当前任务
|
|
|
|
|
|
.and(slam -> slam.eq(SchBaseTask::getPoint_code1, point_code2) |
|
|
|
|
|
.or() |
|
|
|
|
|
.eq(SchBaseTask::getPoint_code2, point_code2) |
|
|
|
|
|
.or() |
|
|
|
|
|
.like(point_code2.startsWith("DKT"),SchBaseTask::getPoint_code2,"DKT") |
|
|
|
|
|
) |
|
|
|
|
|
.eq(SchBaseTask::getIs_delete, false) |
|
|
|
|
|
.gt(point_code2.startsWith("DKT"),SchBaseTask::getTask_status, TaskStatus.APPLY.getCode()); |
|
|
|
|
|
Integer schBaseTasks = schBaseTaskMapper.selectCount(lam); |
|
|
|
|
|
return schBaseTasks; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Integer findUnFinishTasksBySub_tray(String task_code, String sub_tray) { |
|
|
public Integer findUnFinishTasksBySub_tray(String task_code, String sub_tray) { |
|
|
Assert.notNull(sub_tray, "子托盘不能为空!"); |
|
|
Assert.notNull(sub_tray, "子托盘不能为空!"); |
|
|