Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
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
后端-黄柯铭
lingxi-lxy-yanshou
Commits
21bc7d7a
Commit
21bc7d7a
authored
Aug 05, 2021
by
xyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问题修改
parent
dd6eae73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
CommonCommodityPlatformRequest.java
...del/request/commodity/CommonCommodityPlatformRequest.java
+2
-1
CommodityCommonController.java
.../lingxi/product/controller/CommodityCommonController.java
+6
-2
No files found.
product-service/product-service-api/src/main/java/com/ssy/lingxi/product/api/model/request/commodity/CommonCommodityPlatformRequest.java
View file @
21bc7d7a
package
com
.
ssy
.
lingxi
.
product
.
api
.
model
.
request
.
commodity
;
import
com.ssy.lingxi.common.model.vo.PageVO
;
import
lombok.Data
;
import
java.util.List
;
...
...
@@ -11,7 +12,7 @@ import java.util.List;
* @date 2020/6/28
*/
@Data
public
class
CommonCommodityPlatformRequest
{
public
class
CommonCommodityPlatformRequest
extends
PageVO
{
/**
* 排除的id集合
...
...
product-service/src/main/java/com/ssy/lingxi/product/controller/CommodityCommonController.java
View file @
21bc7d7a
...
...
@@ -15,6 +15,7 @@ import com.ssy.lingxi.product.api.model.response.commodity.CommonCommodityPlatfo
import
com.ssy.lingxi.product.service.IChannelCommodityService
;
import
com.ssy.lingxi.product.service.ICommodityService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -111,12 +112,11 @@ public class CommodityCommonController extends BaseController {
/**
* 查询商品列表--平台(全部商品)
* @param pageVO 分页实体
* @param commodityPlatformRequest 查询条件实体
* @return
*/
@RequestMapping
(
value
=
"/getCommodityListByPlatform"
,
method
=
RequestMethod
.
POST
)
public
Wrapper
<
PageData
<
CommonCommodityPlatformResponse
>>
getCommodityListByPlatform
(
PageVO
pageVO
,
CommonCommodityPlatformRequest
commodityPlatformRequest
)
{
public
Wrapper
<
PageData
<
CommonCommodityPlatformResponse
>>
getCommodityListByPlatform
(
@RequestBody
CommonCommodityPlatformRequest
commodityPlatformRequest
)
{
CommodityDetailRequest
commodityDetailRequest
=
this
.
modelMapper
.
map
(
commodityPlatformRequest
,
CommodityDetailRequest
.
class
);
//商品状态
List
<
Integer
>
statusList
=
new
ArrayList
<>();
...
...
@@ -129,6 +129,10 @@ public class CommodityCommonController extends BaseController {
shopIdList
.
add
(
shopId
);
commodityDetailRequest
.
setShopIdList
(
shopIdList
);
}
//分页参数
PageVO
pageVO
=
new
PageVO
();
pageVO
.
setCurrent
(
commodityPlatformRequest
.
getCurrent
());
pageVO
.
setPageSize
(
commodityPlatformRequest
.
getPageSize
());
return
Wrapper
.
success
(
commodityService
.
getCommodityListByPlatform
(
pageVO
,
commodityDetailRequest
));
}
...
...
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