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
2aaf756e
Commit
2aaf756e
authored
Oct 04, 2019
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
df07f7f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
BrandController.java
src/main/java/com/egolm/shop/controller/BrandController.java
+8
-1
BrandService.java
src/main/java/com/egolm/shop/service/BrandService.java
+1
-1
BrandServiceImpl.java
...in/java/com/egolm/shop/service/impl/BrandServiceImpl.java
+3
-3
No files found.
src/main/java/com/egolm/shop/controller/BrandController.java
View file @
2aaf756e
...
@@ -169,6 +169,9 @@ public class BrandController {
...
@@ -169,6 +169,9 @@ public class BrandController {
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"timestamp"
,
dataType
=
"String"
,
required
=
true
,
value
=
"时间戳"
,
defaultValue
=
""
),
@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
=
"comId"
,
dataType
=
"String"
,
required
=
true
,
value
=
"类型"
,
defaultValue
=
"0为全部"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"comId"
,
dataType
=
"String"
,
required
=
true
,
value
=
"类型"
,
defaultValue
=
"0为全部"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"index"
,
dataType
=
"String"
,
required
=
false
,
value
=
"第几页"
,
defaultValue
=
"1"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"limit"
,
dataType
=
"String"
,
required
=
false
,
value
=
"每页数量"
,
defaultValue
=
"20"
),
})
})
@RequestMapping
(
value
=
"/hotIPList"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/hotIPList"
,
method
=
RequestMethod
.
GET
)
public
String
hotIPList
(
HttpServletRequest
request
)
{
public
String
hotIPList
(
HttpServletRequest
request
)
{
...
@@ -181,8 +184,12 @@ public class BrandController {
...
@@ -181,8 +184,12 @@ public class BrandController {
params
.
put
(
"orgNO"
,
orgNO
);
params
.
put
(
"orgNO"
,
orgNO
);
params
.
put
(
"comId"
,
comId
);
params
.
put
(
"comId"
,
comId
);
Page
page
=
new
Page
();
page
.
setIndex
(
Long
.
valueOf
(
request
.
getParameter
(
"index"
)==
null
?
"1"
:
request
.
getParameter
(
"index"
)));
page
.
setLimit
(
Long
.
valueOf
(
request
.
getParameter
(
"limit"
)==
null
?
"20"
:
request
.
getParameter
(
"limit"
)));
page
.
setLimitKey
(
" Sort desc"
);
List
<
Map
<
String
,
Object
>>
hotIPList
=
brandService
.
hotIPList
(
params
);
List
<
Map
<
String
,
Object
>>
hotIPList
=
brandService
.
hotIPList
(
params
,
page
);
if
(
hotIPList
!=
null
&&
hotIPList
.
size
()
>
0
)
{
if
(
hotIPList
!=
null
&&
hotIPList
.
size
()
>
0
)
{
return
Rjx
.
jsonOk
().
set
(
"list"
,
hotIPList
).
toString
();
return
Rjx
.
jsonOk
().
set
(
"list"
,
hotIPList
).
toString
();
}
else
{
}
else
{
...
...
src/main/java/com/egolm/shop/service/BrandService.java
View file @
2aaf756e
...
@@ -13,7 +13,7 @@ public interface BrandService {
...
@@ -13,7 +13,7 @@ public interface BrandService {
public
List
<
Map
<
String
,
Object
>>
queryBrandList
(
String
orgNo
);
public
List
<
Map
<
String
,
Object
>>
queryBrandList
(
String
orgNo
);
public
List
<
Map
<
String
,
Object
>>
hotIPList
(
Map
<
String
,
Object
>
params
);
public
List
<
Map
<
String
,
Object
>>
hotIPList
(
Map
<
String
,
Object
>
params
,
Page
page
);
public
Map
<
String
,
Object
>
hotIPDetail
(
Map
<
String
,
Object
>
params
);
public
Map
<
String
,
Object
>
hotIPDetail
(
Map
<
String
,
Object
>
params
);
...
...
src/main/java/com/egolm/shop/service/impl/BrandServiceImpl.java
View file @
2aaf756e
...
@@ -105,7 +105,7 @@ public class BrandServiceImpl implements BrandService {
...
@@ -105,7 +105,7 @@ public class BrandServiceImpl implements BrandService {
* @param page
* @param page
* @return
* @return
*/
*/
public
List
<
Map
<
String
,
Object
>>
hotIPList
(
Map
<
String
,
Object
>
params
)
{
public
List
<
Map
<
String
,
Object
>>
hotIPList
(
Map
<
String
,
Object
>
params
,
Page
page
)
{
String
orgNO
=
params
.
get
(
"orgNO"
)+
""
;
String
orgNO
=
params
.
get
(
"orgNO"
)+
""
;
String
comId
=
params
.
get
(
"comId"
)+
""
;
String
comId
=
params
.
get
(
"comId"
)+
""
;
jdbcTemplate
.
setDialect
(
new
SqlServerDialect
());
jdbcTemplate
.
setDialect
(
new
SqlServerDialect
());
...
@@ -116,9 +116,9 @@ public class BrandServiceImpl implements BrandService {
...
@@ -116,9 +116,9 @@ public class BrandServiceImpl implements BrandService {
if
(!
comId
.
equals
(
"0"
))
{
if
(!
comId
.
equals
(
"0"
))
{
sql
+=
" and a.sIPBrandTypeID = '"
+
comId
+
"' "
;
sql
+=
" and a.sIPBrandTypeID = '"
+
comId
+
"' "
;
}
}
sql
+=
" ORDER BY a.nSort DESC "
;
//
sql+= " ORDER BY a.nSort DESC " ;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
,
orgNO
);
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
limit
(
sql
,
page
,
orgNO
);
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
for
(
Map
<
String
,
Object
>
map:
list
)
{
for
(
Map
<
String
,
Object
>
map:
list
)
{
String
IPID
=
map
.
get
(
"IPID"
)+
""
;
String
IPID
=
map
.
get
(
"IPID"
)+
""
;
...
...
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