会员商品 添加购物车 记录
This commit is contained in:
@@ -50,12 +50,13 @@ public class ProductController {
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("queryProduct")
|
||||
public Result queryProduct(@RequestBody Map<String, String> map) {
|
||||
public Result queryProduct(@RequestHeader("id") String userId,@RequestBody Map<String, String> map) {
|
||||
|
||||
if (ObjectUtil.isEmpty(map) || map.size() <= 0 || !map.containsKey("shopId")) {
|
||||
return Result.fail("参数错误");
|
||||
}
|
||||
return productService.queryProduct(
|
||||
userId,
|
||||
map.get("shopId").toString(),
|
||||
(map.containsKey("productGroupId") && ObjectUtil.isNotEmpty(map.get("productGroupId"))) ? map.get("productGroupId").toString() : "");
|
||||
}
|
||||
@@ -81,9 +82,10 @@ public class ProductController {
|
||||
@RequestParam(value = "code", required = false) String code,
|
||||
@RequestParam("shopId") String shopId,
|
||||
@RequestParam("productId") String productId,
|
||||
@RequestParam("spec_tag") String spec_tag
|
||||
@RequestParam("spec_tag") String spec_tag,
|
||||
@RequestParam("isVip") Integer isVip
|
||||
) {
|
||||
return productService.queryProductSku(code,shopId, productId, spec_tag);
|
||||
return productService.queryProductSku(code,shopId, productId, spec_tag,isVip);
|
||||
}
|
||||
|
||||
@PostMapping("addCart")
|
||||
|
||||
Reference in New Issue
Block a user