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
ce085142
Commit
ce085142
authored
Oct 12, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
162244fe
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
BrandController.java
src/main/java/com/egolm/shop/controller/BrandController.java
+5
-1
CategoryController.java
...in/java/com/egolm/shop/controller/CategoryController.java
+7
-1
BrandServiceImpl.java
...in/java/com/egolm/shop/service/impl/BrandServiceImpl.java
+1
-0
CategoryServiceImpl.java
...java/com/egolm/shop/service/impl/CategoryServiceImpl.java
+1
-1
No files found.
src/main/java/com/egolm/shop/controller/BrandController.java
View file @
ce085142
...
...
@@ -131,7 +131,11 @@ public class BrandController {
@RequestMapping
(
value
=
"/getBrandList"
,
method
=
RequestMethod
.
GET
)
public
String
getBrandList
(
String
orgNo
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
List
<
Map
<
String
,
Object
>>
returnList
=
brandService
.
queryBrandList
(
orgNo
);
return
Rjx
.
jsonOk
().
set
(
"list"
,
returnList
).
toJson
();
List
<
String
>
cs
=
new
ArrayList
<
String
>();
for
(
Map
<
String
,
Object
>
map
:
returnList
)
{
cs
.
add
((
String
)
map
.
get
(
"sBrandName"
));
}
return
Rjx
.
jsonOk
().
set
(
"keys"
,
cs
).
set
(
"list"
,
returnList
).
toJson
();
}
@ApiOperation
(
"热销品牌列表"
)
...
...
src/main/java/com/egolm/shop/controller/CategoryController.java
View file @
ce085142
package
com
.
egolm
.
shop
.
controller
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -59,6 +60,11 @@ public class CategoryController {
@RequestMapping
(
value
=
"/queryCategoryByLevel"
,
method
=
RequestMethod
.
GET
)
public
String
queryCategoryByLevel
(
String
orgNo
,
String
scopeTypeID
,
Integer
level
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
List
<
Map
<
String
,
Object
>>
list
=
categoryService
.
queryCategoryByLevel
(
orgNo
,
scopeTypeID
,
level
);
return
Rjx
.
jsonOk
().
set
(
"list"
,
list
).
toJson
();
List
<
String
>
cs
=
new
ArrayList
<
String
>();
for
(
Map
<
String
,
Object
>
map
:
list
)
{
cs
.
add
((
String
)
map
.
get
(
"sCategoryDesc"
));
}
return
Rjx
.
jsonOk
().
set
(
"keys"
,
cs
).
set
(
"list"
,
list
).
toJson
();
}
}
src/main/java/com/egolm/shop/service/impl/BrandServiceImpl.java
View file @
ce085142
...
...
@@ -92,6 +92,7 @@ public class BrandServiceImpl implements BrandService {
+
"b.sBrandName, "
+
"b.sLogoUrl "
+
"ORDER BY "
+
"b.nSort, "
+
"b.sPinyinCode "
;
return
jdbcTemplate
.
queryForList
(
sql
,
orgNo
);
}
...
...
src/main/java/com/egolm/shop/service/impl/CategoryServiceImpl.java
View file @
ce085142
...
...
@@ -69,7 +69,7 @@ public class CategoryServiceImpl implements CategoryService {
if
(
level
==
null
)
{
level
=
jdbcTemplate
.
queryForInt
(
"select GoodsCategoryLevel = isnull((select Convert(int,sValue1) from tSystemCtrl where sCode = 'GoodsCategoryLevel'),0)"
);
}
String
three
=
"select sCategoryNO, sCategoryDesc, sUpCategoryNO from tOrgCategory where sOrgNO = ? and nCategoryLevel = ?"
;
String
three
=
"select sCategoryNO, sCategoryDesc, sUpCategoryNO from tOrgCategory where sOrgNO = ? and nCategoryLevel = ?
order by nSort
"
;
List
<
Map
<
String
,
Object
>>
list3
=
jdbcTemplate
.
queryForList
(
three
,
orgNO
,
level
);
return
list3
;
}
...
...
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