Commit 27278b49 authored by 332784038@qq.com's avatar 332784038@qq.com

Merge branch 'release-fix' into release

parents a602ac10 501f413a
...@@ -611,6 +611,7 @@ public class OrderQueryVO { ...@@ -611,6 +611,7 @@ public class OrderQueryVO {
public void setAsStatusList(List<Integer> asStatusList) { public void setAsStatusList(List<Integer> asStatusList) {
this.asStatusList = asStatusList; this.asStatusList = asStatusList;
if (CollectionUtil.isNotEmpty(this.asStatusList)) { if (CollectionUtil.isNotEmpty(this.asStatusList)) {
this.statusList = new ArrayList<>();
for (Integer asStatus : asStatusList) { for (Integer asStatus : asStatusList) {
combinedStateList(asStatus, this.transportId); combinedStateList(asStatus, this.transportId);
} }
...@@ -619,6 +620,7 @@ public class OrderQueryVO { ...@@ -619,6 +620,7 @@ public class OrderQueryVO {
public void setStatusList(List<Integer> statusList) { public void setStatusList(List<Integer> statusList) {
this.asStatusList = statusList; this.asStatusList = statusList;
if (CollectionUtil.isNotEmpty(this.asStatusList)) { if (CollectionUtil.isNotEmpty(this.asStatusList)) {
this.statusList = new ArrayList<>();
for (Integer asStatus : asStatusList) { for (Integer asStatus : asStatusList) {
combinedStateList(asStatus, this.transportId); combinedStateList(asStatus, this.transportId);
} }
...@@ -631,6 +633,7 @@ public class OrderQueryVO { ...@@ -631,6 +633,7 @@ public class OrderQueryVO {
combinedState(this.asStatus, this.transportId); combinedState(this.asStatus, this.transportId);
} }
if (Objects.nonNull(transportId) && CollectionUtil.isNotEmpty(this.asStatusList)) { if (Objects.nonNull(transportId) && CollectionUtil.isNotEmpty(this.asStatusList)) {
this.statusList = new ArrayList<>();
for (Integer asStatus : asStatusList) { for (Integer asStatus : asStatusList) {
combinedStateList(asStatus, this.transportId); combinedStateList(asStatus, this.transportId);
} }
...@@ -706,9 +709,6 @@ public class OrderQueryVO { ...@@ -706,9 +709,6 @@ public class OrderQueryVO {
private void combinedStateList(Integer asStatus, Integer transportId) { private void combinedStateList(Integer asStatus, Integer transportId) {
switch (asStatus) { switch (asStatus) {
case 12325: case 12325:
if (Objects.isNull(this.statusList)){
this.statusList = new ArrayList<>();
}
if (Objects.isNull(this.shipmentStateList)){ if (Objects.isNull(this.shipmentStateList)){
this.shipmentStateList = new ArrayList<>(); this.shipmentStateList = new ArrayList<>();
} }
...@@ -717,9 +717,6 @@ public class OrderQueryVO { ...@@ -717,9 +717,6 @@ public class OrderQueryVO {
break; break;
case 10501: case 10501:
// 空运待出 // 空运待出
if (Objects.isNull(this.statusList)){
this.statusList = new ArrayList<>();
}
if (Objects.isNull(this.airShipmentList)){ if (Objects.isNull(this.airShipmentList)){
this.airShipmentList = new ArrayList<>(); this.airShipmentList = new ArrayList<>();
} }
...@@ -737,9 +734,6 @@ public class OrderQueryVO { ...@@ -737,9 +734,6 @@ public class OrderQueryVO {
break; break;
case 10502: case 10502:
// 空运可出 // 空运可出
if (Objects.isNull(this.statusList)){
this.statusList = new ArrayList<>();
}
if (Objects.isNull(this.airShipmentList)){ if (Objects.isNull(this.airShipmentList)){
this.airShipmentList = new ArrayList<>(); this.airShipmentList = new ArrayList<>();
} }
...@@ -749,9 +743,6 @@ public class OrderQueryVO { ...@@ -749,9 +743,6 @@ public class OrderQueryVO {
break; break;
case 10503: case 10503:
// 空运已备货 // 空运已备货
if (Objects.isNull(this.statusList)){
this.statusList = new ArrayList<>();
}
if (Objects.isNull(this.airShipmentList)){ if (Objects.isNull(this.airShipmentList)){
this.airShipmentList = new ArrayList<>(); this.airShipmentList = new ArrayList<>();
} }
...@@ -761,9 +752,6 @@ public class OrderQueryVO { ...@@ -761,9 +752,6 @@ public class OrderQueryVO {
break; break;
case 10504: case 10504:
// 待排单 // 待排单
if (Objects.isNull(this.statusList)){
this.statusList = new ArrayList<>();
}
if (Objects.isNull(this.airShipmentList)){ if (Objects.isNull(this.airShipmentList)){
this.airShipmentList = new ArrayList<>(); this.airShipmentList = new ArrayList<>();
} }
...@@ -787,57 +775,42 @@ public class OrderQueryVO { ...@@ -787,57 +775,42 @@ public class OrderQueryVO {
break; break;
case 132411: case 132411:
// 空运已出货 // 空运已出货
if (Objects.isNull(this.statusList)){
this.statusList = new ArrayList<>();
}
if (Objects.isNull(this.shipmentStateList)){ if (Objects.isNull(this.shipmentStateList)){
this.shipmentStateList = new ArrayList<>(); this.shipmentStateList = new ArrayList<>();
} }
this.statusList.add(32); this.statusList.add(32);
this.shipmentStateList.add(411); this.shipmentStateList.add(411);
this.transportId = 3; // 空运待出查询,只查空运的订单 // this.transportId = 3; // 空运待出查询,只查空运的订单
break; break;
case 132412: case 132412:
// 空运已出仓 // 空运已出仓
if (Objects.isNull(this.statusList)){
this.statusList = new ArrayList<>();
}
if (Objects.isNull(this.shipmentStateList)){ if (Objects.isNull(this.shipmentStateList)){
this.shipmentStateList = new ArrayList<>(); this.shipmentStateList = new ArrayList<>();
} }
this.statusList.add(32); this.statusList.add(32);
this.shipmentStateList.add(412); this.shipmentStateList.add(412);
this.transportId = 3; // 空运待出查询,只查空运的订单 // this.transportId = 3; // 空运待出查询,只查空运的订单
break; break;
case 132409: case 132409:
// 空运已理货 // 空运已理货
if (Objects.isNull(this.statusList)){
this.statusList = new ArrayList<>();
}
if (Objects.isNull(this.shipmentStateList)){ if (Objects.isNull(this.shipmentStateList)){
this.shipmentStateList = new ArrayList<>(); this.shipmentStateList = new ArrayList<>();
} }
this.statusList.add(32); this.statusList.add(32);
this.shipmentStateList.add(409); this.shipmentStateList.add(409);
this.transportId = 3; // 空运待出查询,只查空运的订单 // this.transportId = 3; // 空运待出查询,只查空运的订单
break; break;
case 118428: case 118428:
// 空运已到港 // 空运已到港
if (Objects.isNull(this.statusList)){
this.statusList = new ArrayList<>();
}
if (Objects.isNull(this.shipmentStateList)){ if (Objects.isNull(this.shipmentStateList)){
this.shipmentStateList = new ArrayList<>(); this.shipmentStateList = new ArrayList<>();
} }
this.statusList.add(32); this.statusList.add(32);
this.shipmentStateList.add(428); this.shipmentStateList.add(428);
this.transportId = 3; // 空运待出查询,只查空运的订单 // this.transportId = 3; // 空运待出查询,只查空运的订单
break; break;
default: default:
if (Objects.isNull(this.statusList)){ this.statusList.add(asStatus);
this.statusList = new ArrayList<>();
this.statusList.add(asStatus);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment