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
f0675db8
Commit
f0675db8
authored
Apr 01, 2021
by
macro
Browse files
Update SmsHomeNewProductController.java
parent
66e6e874
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-admin/src/main/java/com/macro/mall/controller/SmsHomeNewProductController.java
View file @
f0675db8
...
@@ -26,8 +26,8 @@ public class SmsHomeNewProductController {
...
@@ -26,8 +26,8 @@ public class SmsHomeNewProductController {
@ApiOperation
(
"添加首页推荐品牌"
)
@ApiOperation
(
"添加首页推荐品牌"
)
@RequestMapping
(
value
=
"/create"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/create"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
CommonResult
create
(
@RequestBody
List
<
SmsHomeNewProduct
>
home
Brand
List
)
{
public
CommonResult
create
(
@RequestBody
List
<
SmsHomeNewProduct
>
home
NewProduct
List
)
{
int
count
=
homeNewProductService
.
create
(
home
Brand
List
);
int
count
=
homeNewProductService
.
create
(
home
NewProduct
List
);
if
(
count
>
0
)
{
if
(
count
>
0
)
{
return
CommonResult
.
success
(
count
);
return
CommonResult
.
success
(
count
);
}
}
...
@@ -74,7 +74,7 @@ public class SmsHomeNewProductController {
...
@@ -74,7 +74,7 @@ public class SmsHomeNewProductController {
@RequestParam
(
value
=
"recommendStatus"
,
required
=
false
)
Integer
recommendStatus
,
@RequestParam
(
value
=
"recommendStatus"
,
required
=
false
)
Integer
recommendStatus
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"5"
)
Integer
pageSize
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"5"
)
Integer
pageSize
,
@RequestParam
(
value
=
"pageNum"
,
defaultValue
=
"1"
)
Integer
pageNum
)
{
@RequestParam
(
value
=
"pageNum"
,
defaultValue
=
"1"
)
Integer
pageNum
)
{
List
<
SmsHomeNewProduct
>
home
Brand
List
=
homeNewProductService
.
list
(
productName
,
recommendStatus
,
pageSize
,
pageNum
);
List
<
SmsHomeNewProduct
>
home
NewProduct
List
=
homeNewProductService
.
list
(
productName
,
recommendStatus
,
pageSize
,
pageNum
);
return
CommonResult
.
success
(
CommonPage
.
restPage
(
home
Brand
List
));
return
CommonResult
.
success
(
CommonPage
.
restPage
(
home
NewProduct
List
));
}
}
}
}
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