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
36dca836
Commit
36dca836
authored
Sep 18, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
2370cba9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
7 deletions
+27
-7
create-index-query.sql
sql/goods/create-index-query.sql
+6
-0
delete-index-query.sql
sql/goods/delete-index-query.sql
+7
-0
update-index-query.sql
sql/goods/update-index-query.sql
+7
-0
BrandController.java
src/main/java/com/egolm/shop/controller/BrandController.java
+4
-4
CategoryController.java
...in/java/com/egolm/shop/controller/CategoryController.java
+3
-3
No files found.
sql/goods/create-index-query.sql
View file @
36dca836
select
t
.
*
from
V_SolrGoods
t
where
t
.
nTag
&
3
=
2
\ No newline at end of file
sql/goods/delete-index-query.sql
View file @
36dca836
select
t
.
*
from
V_SolrGoods
t
where
t
.
nTag
&
1
=
1
and
t
.
dLastUpdateTime
>
?
\ No newline at end of file
sql/goods/update-index-query.sql
View file @
36dca836
select
t
.
*
from
V_SolrGoods
t
where
t
.
nTag
&
3
=
2
and
t
.
dLastUpdateTime
>
?
\ No newline at end of file
src/main/java/com/egolm/shop/controller/BrandController.java
View file @
36dca836
...
@@ -73,8 +73,8 @@ public class BrandController {
...
@@ -73,8 +73,8 @@ public class BrandController {
@ApiOperation
(
"品牌列表接口按首字母"
)
@ApiOperation
(
"品牌列表接口按首字母"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"
OrgNO
"
,
dataType
=
"String"
,
required
=
true
,
value
=
"区域编号"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"
orgNo
"
,
dataType
=
"String"
,
required
=
true
,
value
=
"区域编号"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"
ShopNO
"
,
dataType
=
"String"
,
required
=
false
,
value
=
"店铺编号"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"
shopNo
"
,
dataType
=
"String"
,
required
=
false
,
value
=
"店铺编号"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
true
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
true
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
true
,
value
=
"语言"
,
defaultValue
=
"936"
),
...
@@ -85,8 +85,8 @@ public class BrandController {
...
@@ -85,8 +85,8 @@ public class BrandController {
public
String
getBrandList
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
String
getBrandList
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
List
<
Map
<
String
,
Object
>>
listMap
;
List
<
Map
<
String
,
Object
>>
listMap
;
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"OrgNO"
,
request
.
getParameter
(
"
OrgNO
"
));
params
.
put
(
"OrgNO"
,
request
.
getParameter
(
"
orgNo
"
));
params
.
put
(
"ShopNO"
,
request
.
getParameter
(
"
ShopNO
"
));
params
.
put
(
"ShopNO"
,
request
.
getParameter
(
"
shopNo
"
));
listMap
=
brandService
.
getBrandList
(
params
);
listMap
=
brandService
.
getBrandList
(
params
);
String
reg
=
"[A-Z]"
;
String
reg
=
"[A-Z]"
;
//用map把相同首字母放到同一个list中
//用map把相同首字母放到同一个list中
...
...
src/main/java/com/egolm/shop/controller/CategoryController.java
View file @
36dca836
...
@@ -49,7 +49,7 @@ public class CategoryController {
...
@@ -49,7 +49,7 @@ public class CategoryController {
@ApiOperation
(
"分类列表"
)
@ApiOperation
(
"分类列表"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"level"
,
dataType
=
"int"
,
required
=
true
,
value
=
"级别"
,
defaultValue
=
"3"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"level"
,
dataType
=
"int"
,
required
=
true
,
value
=
"级别"
,
defaultValue
=
"3"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"orgN
O
"
,
dataType
=
"String"
,
required
=
true
,
value
=
"组织机构"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"orgN
o
"
,
dataType
=
"String"
,
required
=
true
,
value
=
"组织机构"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"scopeTypeID"
,
dataType
=
"String"
,
required
=
true
,
value
=
"店铺类型"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"scopeTypeID"
,
dataType
=
"String"
,
required
=
true
,
value
=
"店铺类型"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
false
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"terminal"
,
dataType
=
"String"
,
required
=
false
,
value
=
"终端标识"
,
defaultValue
=
"wechat"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"语言"
,
defaultValue
=
"936"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"langID"
,
dataType
=
"String"
,
required
=
false
,
value
=
"语言"
,
defaultValue
=
"936"
),
...
@@ -57,8 +57,8 @@ public class CategoryController {
...
@@ -57,8 +57,8 @@ public class CategoryController {
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
)
})
})
@RequestMapping
(
value
=
"/queryCategoryByLevel"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/queryCategoryByLevel"
,
method
=
RequestMethod
.
GET
)
public
String
queryCategoryByLevel
(
String
orgN
O
,
String
scopeTypeID
,
Integer
level
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
String
queryCategoryByLevel
(
String
orgN
o
,
String
scopeTypeID
,
Integer
level
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
List
<
Map
<
String
,
Object
>>
list
=
categoryService
.
queryCategoryByLevel
(
orgN
O
,
scopeTypeID
,
level
);
List
<
Map
<
String
,
Object
>>
list
=
categoryService
.
queryCategoryByLevel
(
orgN
o
,
scopeTypeID
,
level
);
return
Rjx
.
jsonOk
().
set
(
"list"
,
list
).
toJson
();
return
Rjx
.
jsonOk
().
set
(
"list"
,
list
).
toJson
();
}
}
}
}
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