Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
曲欣亮
shop
Commits
cfc6c3b9
Commit
cfc6c3b9
authored
Sep 18, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a8910596
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
BrandController.java
src/main/java/com/egolm/shop/controller/BrandController.java
+4
-4
No files found.
src/main/java/com/egolm/shop/controller/BrandController.java
View file @
cfc6c3b9
...
...
@@ -94,9 +94,9 @@ public class BrandController {
for
(
Map
<
String
,
Object
>
item:
listMap
)
{
String
first
=((
String
)
item
.
get
(
"PinyinCode"
)).
substring
(
0
,
1
).
toUpperCase
();
Map
<
String
,
String
>
BrandMap
=
new
HashMap
<>();
BrandMap
.
put
(
"
BrandNO"
,
(
String
)
item
.
get
(
"BrandNO
"
));
BrandMap
.
put
(
"
BrandName"
,
(
String
)
item
.
get
(
"
BrandName"
));
BrandMap
.
put
(
"
ImgPath"
,
(
String
)
item
.
get
(
"ImgPath
"
));
BrandMap
.
put
(
"
sBrandID"
,
(
String
)
item
.
get
(
"sBrandID
"
));
BrandMap
.
put
(
"
sBrandName"
,
(
String
)
item
.
get
(
"s
BrandName"
));
BrandMap
.
put
(
"
sLogoUrl"
,
(
String
)
item
.
get
(
"sLogoUrl
"
));
if
(
first
.
matches
(
reg
))
{
if
(
pinMap
.
containsKey
(
first
))
{
pinMap
.
get
(
first
).
add
(
BrandMap
);
...
...
@@ -116,7 +116,7 @@ public class BrandController {
List
<
Map
<
String
,
Object
>>
returnList
=
new
ArrayList
<>();
for
(
Entry
<
String
,
List
>
entry
:
pinMap
.
entrySet
())
{
Map
<
String
,
Object
>
returnMap
=
new
HashMap
<>();
returnMap
.
put
(
"
Py
Code"
,
entry
.
getKey
());
returnMap
.
put
(
"
sPinyin
Code"
,
entry
.
getKey
());
returnMap
.
put
(
"BrandList"
,
entry
.
getValue
().
toArray
());
returnList
.
add
(
returnMap
);
}
...
...
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