|
|
@ -132,6 +132,7 @@ public class GoodsController { |
|
|
|
@ApiOperation(value = "查询商品列表") |
|
|
|
@ApiOperation(value = "查询商品列表") |
|
|
|
public ResponseData getListGoodsDetail( |
|
|
|
public ResponseData getListGoodsDetail( |
|
|
|
@RequestParam(value = "goodsTypeId", required = false) String goodsTypeId, |
|
|
|
@RequestParam(value = "goodsTypeId", required = false) String goodsTypeId, |
|
|
|
|
|
|
|
@RequestParam(value = "title", required = false) String title, |
|
|
|
@RequestParam(value = "companyId", required = false) Long companyId |
|
|
|
@RequestParam(value = "companyId", required = false) Long companyId |
|
|
|
) { |
|
|
|
) { |
|
|
|
try { |
|
|
|
try { |
|
|
@ -139,6 +140,7 @@ public class GoodsController { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("companyId", companyId); |
|
|
|
map.put("companyId", companyId); |
|
|
|
map.put("status", 1); |
|
|
|
map.put("status", 1); |
|
|
|
|
|
|
|
map.put("title", title); |
|
|
|
List<GoodsModel> goodsModels = new ArrayList<>(); |
|
|
|
List<GoodsModel> goodsModels = new ArrayList<>(); |
|
|
|
List<GoodsDetail> list = new ArrayList<>(); |
|
|
|
List<GoodsDetail> list = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
@ -150,6 +152,7 @@ public class GoodsController { |
|
|
|
|
|
|
|
|
|
|
|
for (HighGoodsType highGoodsType : goodsTypes) { |
|
|
|
for (HighGoodsType highGoodsType : goodsTypes) { |
|
|
|
map.put("goodsType", highGoodsType.getId()); |
|
|
|
map.put("goodsType", highGoodsType.getId()); |
|
|
|
|
|
|
|
|
|
|
|
list.addAll(goodsDetailService.getGoodsDetailList(map)); |
|
|
|
list.addAll(goodsDetailService.getGoodsDetailList(map)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|