Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tao.mo
2023-03-06 17:36:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
11c7c96b7dcf24557d3a0d17745af5073f005088
11c7c96b
1 parent
25c7b28f
PI-11-功能扩展-06:
接口校验信息调整 mt 2023年3月6日17:36:32
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
src/main/java/com/erry/iclear/dateInterface/api/FedexDataInterface.java
src/main/java/com/erry/iclear/dateInterface/service/ChmConsignmentDetailService.java
src/main/java/com/erry/iclear/dateInterface/service/FedexService.java
src/main/java/com/erry/iclear/dateInterface/api/FedexDataInterface.java
View file @
11c7c96
...
...
@@ -102,11 +102,17 @@ public class FedexDataInterface {
sw
.
start
(
"checkFedexMawb"
);
String
msg
=
result
.
getMsg
();
String
iclearCheckMsg
=
fedexService
.
checkFedexMawb
(
saveMawbFedexResult
,
appInfo
).
getMsg
();
if
(
StringUtil
.
isEmpty
(
msg
)
&&
StringUtil
.
isEmpty
(
iclearCheckMsg
)){
if
(
result
.
getSuccess
(
)
&&
StringUtil
.
isEmpty
(
iclearCheckMsg
)){
result
.
setSuccess
(
Boolean
.
TRUE
);
}
else
{
if
(
result
.
getSuccess
()){
//基本非空信息验证通过,并且iclear验证失败
result
.
setMsg
(
iclearCheckMsg
);
}
else
{
//基本非空信息验证失败,并且iclear验证失败
result
.
setMsg
(
msg
+
";"
+
iclearCheckMsg
);
}
}
sw
.
stop
();
log
.
info
(
sw
.
prettyPrint
());
...
...
src/main/java/com/erry/iclear/dateInterface/service/ChmConsignmentDetailService.java
View file @
11c7c96
...
...
@@ -166,13 +166,13 @@ public class ChmConsignmentDetailService {
result
.
setSkuName
(
mawbDetail
.
getGname
());
//成交数量
result
.
setKnockdownNumber
(
bigDecimalFormat
(
BigDecimal
.
valueOf
(
mawbDetail
.
getGqty
().
doubleValue
())));
//第二法定数量
result
.
setQtyLegalSecond
(
bigDecimalFormat
(
mawbDetail
.
getSecondQty
()));
//第二计量单位
DictionaryEntries
secondUnitDictionaryEntries
=
Constant
.
dictionaryEntriesCache
.
get
(
Constant
.
TRANSACTION_UNIT
+
mawbDetail
.
getSecondUnit
());
if
(!
Objects
.
equals
(
secondUnitDictionaryEntries
,
null
)){
result
.
setUnitLegalSecondId
(
secondUnitDictionaryEntries
);
result
.
setUnitLegalSecond
(
secondUnitDictionaryEntries
.
getChineseName
());
//第二法定数量
result
.
setQtyLegalSecond
(
bigDecimalFormat
(
mawbDetail
.
getSecondQty
()));
}
//成交币制
...
...
src/main/java/com/erry/iclear/dateInterface/service/FedexService.java
View file @
11c7c96
...
...
@@ -169,11 +169,12 @@ public class FedexService {
*/
public
ResultRS
checkBasfInterfaceData
(
Fedexc
fedexc
,
AppInfo
appInfo
){
ResultRS
result
=
new
ResultRS
(
Boolean
.
FALS
E
,
null
,
null
);
ResultRS
result
=
new
ResultRS
(
Boolean
.
TRU
E
,
null
,
null
);
if
(
Objects
.
equals
(
fedexc
,
null
)){
result
.
setCode
(
ErrorCodeEnum
.
ERROR_7
.
getCode
());
result
.
setMsg
(
ErrorCodeEnum
.
ERROR_7
.
getName
());
result
.
setSuccess
(
Boolean
.
FALSE
);
}
else
{
List
<
String
>
msgList
=
new
ArrayList
<>();
// 参数consignmentCode不能为空
...
...
@@ -204,8 +205,9 @@ public class FedexService {
}
if
(
msgList
.
size
()
>
0
){
String
join
=
msgList
.
stream
().
collect
(
Collectors
.
joining
(
";"
));
result
.
setCode
(
"-7"
);
result
.
setCode
(
ErrorCodeEnum
.
ERROR_7
.
getCode
()
);
result
.
setMsg
(
join
);
result
.
setSuccess
(
Boolean
.
FALSE
);
}
}
return
result
;
...
...
Please
register
or
login
to post a comment