Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-webapp-plug
Commits
780ce788
Commit
780ce788
authored
Apr 30, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店标签回写
parent
8265eb2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
StoreController.java
...ain/java/com/gic/plug/web/controller/StoreController.java
+2
-6
No files found.
src/main/java/com/gic/plug/web/controller/StoreController.java
View file @
780ce788
...
@@ -73,8 +73,8 @@ public class StoreController {
...
@@ -73,8 +73,8 @@ public class StoreController {
JSONObject
json
=
JSON
.
parseArray
(
searchParam
).
getJSONObject
(
0
);
JSONObject
json
=
JSON
.
parseArray
(
searchParam
).
getJSONObject
(
0
);
JSONArray
list
=
json
.
getJSONArray
(
"list"
);
JSONArray
list
=
json
.
getJSONArray
(
"list"
);
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++){
JSONObject
o
=
list
.
getJSONObject
(
i
);
JSONObject
o
=
list
.
getJSONObject
(
i
)
.
getJSONObject
(
"data"
)
;
if
(
o
.
containsKey
(
StoreESFieldsEnum
.
REGIONID
.
getField
())){
if
(
o
.
getString
(
"key"
).
equals
(
StoreESFieldsEnum
.
REGIONID
.
getField
())){
authRegionArr
=
o
.
getString
(
"value"
).
split
(
" "
);
authRegionArr
=
o
.
getString
(
"value"
).
split
(
" "
);
}
}
}
}
...
@@ -87,12 +87,8 @@ public class StoreController {
...
@@ -87,12 +87,8 @@ public class StoreController {
List
<
StoreRegionVO
>
regionList
=
new
ArrayList
<>();
List
<
StoreRegionVO
>
regionList
=
new
ArrayList
<>();
for
(
StoreRegionDTO
storeRegionDTO
:
result
){
for
(
StoreRegionDTO
storeRegionDTO
:
result
){
if
(
authRegionArr
!=
null
){
if
(
authRegionArr
!=
null
){
boolean
exist
=
false
;
for
(
String
s
:
authRegionArr
){
for
(
String
s
:
authRegionArr
){
if
(
storeRegionDTO
.
getRegionId
()
==
Integer
.
valueOf
(
s
)){
if
(
storeRegionDTO
.
getRegionId
()
==
Integer
.
valueOf
(
s
)){
exist
=
true
;
}
if
(!
exist
){
regionList
.
add
(
EntityUtil
.
changeEntityByJSON
(
StoreRegionVO
.
class
,
storeRegionDTO
));
regionList
.
add
(
EntityUtil
.
changeEntityByJSON
(
StoreRegionVO
.
class
,
storeRegionDTO
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment