demand: tms-运单管理-转件管理-校验逻辑修改
This commit is contained in:
parent
a828173dd7
commit
5d1275b6e4
@ -161,7 +161,7 @@ public class EmisWaybillTransferController extends EmisBaseController
|
||||
String billCode = emisWaybillTransfer.getBillCode();
|
||||
// 获取主单号
|
||||
String mainBillCode = emisBaseService.getMainBillCode(billCode);
|
||||
|
||||
|
||||
// 检查主单号的问题件(问题件通常关联到主单号)
|
||||
EmisWaybillProblemInfo queryProblem = new EmisWaybillProblemInfo();
|
||||
queryProblem.setBillCode(mainBillCode);
|
||||
@ -169,7 +169,7 @@ public class EmisWaybillTransferController extends EmisBaseController
|
||||
if(!CollectionUtils.isEmpty(problemList)){
|
||||
for(EmisWaybillProblemInfo problemInfo : problemList){
|
||||
Integer problemType = problemInfo.getProblemType();
|
||||
if(problemType != null && (problemType == 151 || problemType == 170 || problemType == 173)){
|
||||
if (problemType != null && (problemType == 151 || problemType == 170 || problemType == 173) && mainBillCode.equals(problemInfo.getBillCode())) {
|
||||
String problemTypeName = "";
|
||||
if(problemType == 151){
|
||||
problemTypeName = "面单删除";
|
||||
@ -182,7 +182,7 @@ public class EmisWaybillTransferController extends EmisBaseController
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 如果传入的是子单号,也检查子单号的问题件
|
||||
if(!billCode.equals(mainBillCode)){
|
||||
EmisWaybillProblemInfo querySubProblem = new EmisWaybillProblemInfo();
|
||||
@ -191,7 +191,7 @@ public class EmisWaybillTransferController extends EmisBaseController
|
||||
if(!CollectionUtils.isEmpty(subProblemList)){
|
||||
for(EmisWaybillProblemInfo problemInfo : subProblemList){
|
||||
Integer problemType = problemInfo.getProblemType();
|
||||
if(problemType != null && (problemType == 151 || problemType == 170 || problemType == 173)){
|
||||
if (problemType != null && (problemType == 151 || problemType == 170 || problemType == 173) && billCode.equals(problemInfo.getBillCode())) {
|
||||
String problemTypeName = "";
|
||||
if(problemType == 151){
|
||||
problemTypeName = "面单删除";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user