fix:一次下发两个空载具任务到子卷下线桁架
This commit is contained in:
@@ -101,22 +101,43 @@ public class AutoSendVehicleToKzj extends Prun{
|
|||||||
//增加空洞判断
|
//增加空洞判断
|
||||||
//车 04 05 06
|
//车 04 05 06
|
||||||
//☒☒口 ☒口☒ ☒口口:
|
//☒☒口 ☒口☒ ☒口口:
|
||||||
BstIvtPackageinfoivt disPoint = empPoints.get(0);
|
if (existTask.size()==0 && empPoints.size() > 1 && vehiclePoints.size() > 1) {
|
||||||
int count = packageinfoivtService.count(new QueryWrapper<BstIvtPackageinfoivt>()
|
for (int i = 0; i < 2; i++) {
|
||||||
.lt("sort_seq", disPoint.getSort_seq())
|
BstIvtPackageinfoivt disPoint = empPoints.get(i);
|
||||||
.eq("point_status", PackageInfoIvtEnum.POINT_STATUS.code("空载具缓存位"))
|
int count = packageinfoivtService.count(new QueryWrapper<BstIvtPackageinfoivt>()
|
||||||
.eq("ivt_status", PackageInfoIvtEnum.IVT_STATUS.code("空载具")));
|
.lt("sort_seq", disPoint.getSort_seq())
|
||||||
if (count>0){
|
.eq("point_status", PackageInfoIvtEnum.POINT_STATUS.code("空载具缓存位"))
|
||||||
log.warn("当前点位存在空洞的情况"+disPoint.getPoint_code());
|
.eq("ivt_status", PackageInfoIvtEnum.IVT_STATUS.code("空载具")));
|
||||||
return;
|
if (count>0){
|
||||||
|
log.warn("当前点位存在空洞的情况"+disPoint.getPoint_code());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
JSONObject task = new JSONObject();
|
||||||
|
task.put("task_type", PackageInfoIvtEnum.TASK_TYPE.code("补空(待检区->空载具缓存位)"));
|
||||||
|
task.put("vehicle_code2", PackageInfoIvtEnum.AGV_ACTION_TYPE.code("放货二次分配"));
|
||||||
|
task.put("point_code1", vehiclePoints.get(i).getPoint_code());
|
||||||
|
task.put("point_code2", this.packageinfoivtService.getWaitPoint(disPoint.getBlock(), disPoint.getWait_point_type()));
|
||||||
|
task.put("point_code3", disPoint.getPoint_code());
|
||||||
|
this.djqToKzjhcwTask.createTask(task);
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
BstIvtPackageinfoivt disPoint = empPoints.get(0);
|
||||||
|
int count = packageinfoivtService.count(new QueryWrapper<BstIvtPackageinfoivt>()
|
||||||
|
.lt("sort_seq", disPoint.getSort_seq())
|
||||||
|
.eq("point_status", PackageInfoIvtEnum.POINT_STATUS.code("空载具缓存位"))
|
||||||
|
.eq("ivt_status", PackageInfoIvtEnum.IVT_STATUS.code("空载具")));
|
||||||
|
if (count>0){
|
||||||
|
log.warn("当前点位存在空洞的情况"+disPoint.getPoint_code());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
JSONObject task = new JSONObject();
|
||||||
|
task.put("task_type", PackageInfoIvtEnum.TASK_TYPE.code("补空(待检区->空载具缓存位)"));
|
||||||
|
task.put("vehicle_code2", PackageInfoIvtEnum.AGV_ACTION_TYPE.code("放货二次分配"));
|
||||||
|
task.put("point_code1", vehiclePoints.get(0).getPoint_code());
|
||||||
|
task.put("point_code2", this.packageinfoivtService.getWaitPoint(disPoint.getBlock(), disPoint.getWait_point_type()));
|
||||||
|
task.put("point_code3", disPoint.getPoint_code());
|
||||||
|
this.djqToKzjhcwTask.createTask(task);
|
||||||
}
|
}
|
||||||
JSONObject task = new JSONObject();
|
|
||||||
task.put("task_type", PackageInfoIvtEnum.TASK_TYPE.code("补空(待检区->空载具缓存位)"));
|
|
||||||
task.put("vehicle_code2", PackageInfoIvtEnum.AGV_ACTION_TYPE.code("放货二次分配"));
|
|
||||||
task.put("point_code1", vehiclePoints.get(0).getPoint_code());
|
|
||||||
task.put("point_code2", this.packageinfoivtService.getWaitPoint(disPoint.getBlock(), disPoint.getWait_point_type()));
|
|
||||||
task.put("point_code3", disPoint.getPoint_code());
|
|
||||||
this.djqToKzjhcwTask.createTask(task);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user