|
@@ -33,6 +33,7 @@ class BillDomTransportCheck extends Script implements ChannelCheckScript { |
|
@@ -33,6 +33,7 @@ class BillDomTransportCheck extends Script implements ChannelCheckScript { |
33
|
@Override
|
33
|
@Override
|
34
|
Boolean check(ExecuteParams executeParams) {
|
34
|
Boolean check(ExecuteParams executeParams) {
|
35
|
try {
|
35
|
try {
|
|
|
36
|
+ Boolean checkFlag = false;
|
36
|
String cookieUserName = "admin"
|
37
|
String cookieUserName = "admin"
|
37
|
String cookieUserId = "1903e605-a2e1-404d-a1a6-a749752fb030"
|
38
|
String cookieUserId = "1903e605-a2e1-404d-a1a6-a749752fb030"
|
38
|
String ServiceAdr = "http://192.168.1.63:10001"
|
39
|
String ServiceAdr = "http://192.168.1.63:10001"
|
|
@@ -82,11 +83,14 @@ class BillDomTransportCheck extends Script implements ChannelCheckScript { |
|
@@ -82,11 +83,14 @@ class BillDomTransportCheck extends Script implements ChannelCheckScript { |
82
|
logger.info("[TRANS-API-RESPONSE]-单证:{},状态:{}",oBill,status)
|
83
|
logger.info("[TRANS-API-RESPONSE]-单证:{},状态:{}",oBill,status)
|
83
|
|
84
|
|
84
|
if (status>0){
|
85
|
if (status>0){
|
|
|
86
|
+ logger.info("[TRANS-CHECK-SUCCESS]-单证:{},状态:{},转运业务验放通过",oBill,status)
|
85
|
// return true
|
87
|
// return true
|
|
|
88
|
+ checkFlag = true
|
86
|
}else{
|
89
|
}else{
|
|
|
90
|
+ logger.info("[TRANS-CHECK-FAILD]-转运单证{}核验失败",bill.getAwba())
|
87
|
sb.append("转运单证[").append(bill.getAwba()).append("]核验失败,未审核通过")
|
91
|
sb.append("转运单证[").append(bill.getAwba()).append("]核验失败,未审核通过")
|
88
|
gatherInfoHandle.sendBw(gatherInfo,false,sb.toString(),landBusinessTypeList,listinfos);
|
92
|
gatherInfoHandle.sendBw(gatherInfo,false,sb.toString(),landBusinessTypeList,listinfos);
|
89
|
- return false
|
93
|
+ return checkFlag;
|
90
|
}
|
94
|
}
|
91
|
})
|
95
|
})
|
92
|
}
|
96
|
}
|
|
@@ -95,13 +99,13 @@ class BillDomTransportCheck extends Script implements ChannelCheckScript { |
|
@@ -95,13 +99,13 @@ class BillDomTransportCheck extends Script implements ChannelCheckScript { |
95
|
logger.info("[TRANS-CHECK-FAILD]-转运单证{}核验失败",bill.getAwba())
|
99
|
logger.info("[TRANS-CHECK-FAILD]-转运单证{}核验失败",bill.getAwba())
|
96
|
sb.append("转运单证[").append(bill.getAwba()).append("]核验失败,API-FAILD")
|
100
|
sb.append("转运单证[").append(bill.getAwba()).append("]核验失败,API-FAILD")
|
97
|
gatherInfoHandle.sendBw(gatherInfo,false,sb.toString(),landBusinessTypeList,listinfos);
|
101
|
gatherInfoHandle.sendBw(gatherInfo,false,sb.toString(),landBusinessTypeList,listinfos);
|
98
|
- return false;
|
102
|
+ return checkFlag;
|
99
|
}
|
103
|
}
|
100
|
})
|
104
|
})
|
101
|
//这里返回验放成功,验放失败从上面返回
|
105
|
//这里返回验放成功,验放失败从上面返回
|
102
|
- return true;
|
106
|
+ return checkFlag;
|
103
|
}else{
|
107
|
}else{
|
104
|
- return false;
|
108
|
+ return checkFlag;
|
105
|
}
|
109
|
}
|
106
|
|
110
|
|
107
|
} catch (Exception e) {
|
111
|
} catch (Exception e) {
|