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
zelong.shao
2023-09-18 15:51:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33f217d6aca3f990587c59b9b2b3631c50b3b1d8
33f217d6
1 parent
d80fc80d
hscode批量查询
2023年9月18日15:51:13 szl
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
src/main/java/com/erry/iclear/dateInterface/service/HsCodeService.java
src/main/java/com/erry/iclear/dateInterface/service/HsCodeService.java
View file @
33f217d
...
...
@@ -177,17 +177,18 @@ public class HsCodeService {
* 2023年2月24日17:29:49
*/
public
void
setHscodeSupervise
(
List
<
HsCode
>
hsCodeList
){
Map
hsCodeAndDescription1
=
new
HashMap
();
List
<
HsCodeAndDescription
>
hsCodeAndDescriptionList
=
hsCodeAndDescriptionRepository
.
selectAndType
(
1
);
if
(
hsCodeAndDescriptionList
.
size
()
>
0
)
{
for
(
HsCodeAndDescription
hsCodeAndDescription
:
hsCodeAndDescriptionList
)
{
HsCodeAndDescriptionDto
hsCodeAndDescriptionDto
=
new
HsCodeAndDescriptionDto
(
hsCodeAndDescription
);
hsCodeAndDescription1
.
put
(
hsCodeAndDescriptionDto
.
getB
(),
hsCodeAndDescriptionDto
);
}
}
List
<
String
>
dictionaryEntriesList
=
dicEntriesRepository
.
findDicEntByCodeList
(
Constant
.
supervise_condition
,
1
);
for
(
HsCode
hsCode
:
hsCodeList
)
{
Map
<
String
,
Object
>
hscodeMap
=
new
HashMap
<>();
hscodeMap
.
put
(
"success"
,
false
);
Map
hsCodeAndDescription1
=
new
HashMap
();
List
<
HsCodeAndDescription
>
hsCodeAndDescriptionList
=
hsCodeAndDescriptionRepository
.
selectAndType
(
1
);
if
(
hsCodeAndDescriptionList
.
size
()
>
0
)
{
for
(
HsCodeAndDescription
hsCodeAndDescription
:
hsCodeAndDescriptionList
)
{
HsCodeAndDescriptionDto
hsCodeAndDescriptionDto
=
new
HsCodeAndDescriptionDto
(
hsCodeAndDescription
);
hsCodeAndDescription1
.
put
(
hsCodeAndDescriptionDto
.
getB
(),
hsCodeAndDescriptionDto
);
}
}
Boolean
isTrue
=
false
;
if
(
hsCode
!=
null
){
if
(
hsCodeAndDescription1
.
size
()>
0
){
...
...
@@ -199,7 +200,6 @@ public class HsCodeService {
}
}
}
List
<
String
>
dictionaryEntriesList
=
dicEntriesRepository
.
findDicEntByCodeList
(
Constant
.
supervise_condition
,
1
);
if
(
dictionaryEntriesList
!=
null
&&
dictionaryEntriesList
.
size
()
>
0
){
for
(
String
str
:
dictionaryEntriesList
){
if
(!
StringUtil
.
isEmptyWithTrim
(
hsCode
.
getMonitorCondition
())
||
hsCode
.
getOutRate
()
!=
null
){
...
...
Please
register
or
login
to post a comment