opt:补空载具优先到管制区

This commit is contained in:
2024-07-16 15:49:53 +08:00
parent 2ed32a6ab2
commit 3427f3210c

View File

@@ -92,7 +92,6 @@ public class AutoSendVehicleToKzj {
boolean tryLock = lock.tryLock(0, TimeUnit.SECONDS); boolean tryLock = lock.tryLock(0, TimeUnit.SECONDS);
try { try {
if (tryLock) { if (tryLock) {
JSONObject task = new JSONObject(); JSONObject task = new JSONObject();
String pointCode1; String pointCode1;
String pointCode2; String pointCode2;
@@ -112,8 +111,8 @@ public class AutoSendVehicleToKzj {
return; return;
} }
if (existTask.size() % 2 != 0) { if (existTask.size() % 2 != 0) {
//优先去待检 //优先去管制
pointCode1 = getPointCode(task, PackageInfoIvtEnum.TASK_TYPE.code("补空(管制区待检区->空载具缓存位)")); pointCode1 = getPointCode(task, PackageInfoIvtEnum.TASK_TYPE.code("补空(管制区->空载具缓存位)"));
} else { } else {
pointCode1 = getPointCode(task, PackageInfoIvtEnum.TASK_TYPE.code("补空(待检区->空载具缓存位)")); pointCode1 = getPointCode(task, PackageInfoIvtEnum.TASK_TYPE.code("补空(待检区->空载具缓存位)"));
} }