Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
c295f5a8
Commit
c295f5a8
authored
May 16, 2018
by
zhh
Browse files
品牌接口修改
parent
2f52c6b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
mall-admin/src/main/java/com/macro/mall/config/SecurityConfig.java
View file @
c295f5a8
...
...
@@ -65,8 +65,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.
permitAll
()
.
antMatchers
(
HttpMethod
.
OPTIONS
)
//跨域请求会先进行一次options请求
.
permitAll
()
//
.antMatchers("/**")//测试时全部运行访问
//
.permitAll()
.
antMatchers
(
"/**"
)
//测试时全部运行访问
.
permitAll
()
.
anyRequest
()
// 除上面外的所有请求全部需要鉴权认证
.
authenticated
();
// 禁用缓存
...
...
mall-admin/src/main/java/com/macro/mall/dto/CommonResult.java
View file @
c295f5a8
...
...
@@ -44,10 +44,10 @@ public class CommonResult {
*/
public
CommonResult
pageSuccess
(
List
data
)
{
PageInfo
pageInfo
=
new
PageInfo
(
data
);
long
totalPage
=
pageInfo
.
getTotal
()
/
pageInfo
.
getPageSize
();
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"pageSize"
,
pageInfo
.
getPageSize
());
result
.
put
(
"totalPage"
,
totalPage
+
1
);
result
.
put
(
"totalPage"
,
pageInfo
.
getPages
());
result
.
put
(
"total"
,
pageInfo
.
getTotal
());
result
.
put
(
"pageNum"
,
pageInfo
.
getPageNum
());
result
.
put
(
"list"
,
pageInfo
.
getList
());
this
.
code
=
SUCCESS
;
...
...
mall-admin/src/main/java/com/macro/mall/service/impl/PmsBrandServiceImpl.java
View file @
c295f5a8
...
...
@@ -79,7 +79,6 @@ public class PmsBrandServiceImpl implements PmsBrandService {
PmsBrandExample
pmsBrandExample
=
new
PmsBrandExample
();
pmsBrandExample
.
setOrderByClause
(
"sort desc"
);
PmsBrandExample
.
Criteria
criteria
=
pmsBrandExample
.
createCriteria
();
criteria
.
andShowStatusEqualTo
(
1
);
if
(!
StringUtils
.
isEmpty
(
keyword
))
{
criteria
.
andNameLike
(
"%"
+
keyword
+
"%"
);
}
...
...
Write
Preview
Supports
Markdown
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