bug
This commit is contained in:
@@ -52,6 +52,35 @@ public class ShopProductController {
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/bindProductAndBookLabel")
|
||||
public R bindProductAndBookLabel(@RequestBody Map<String,String> map){
|
||||
String[] productIds = map.get("productId").split(",");
|
||||
Integer labelId = Integer.valueOf(map.get("labelId"));
|
||||
shopProductService.bindProductAndBookLabel(productIds,labelId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/unbindProductAndBookLabel")
|
||||
public R unbindProductAndBookLabel(@RequestBody Map<String,Integer> map){
|
||||
shopProductService.unbindProductAndBookLabel(map.get("productId"),map.get("labelId"));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/bindProductAndBookMarket")
|
||||
public R bindProductAndBookMarket(@RequestBody Map<String,String> map){
|
||||
String[] productIds = map.get("productId").split(",");
|
||||
Integer marketId = Integer.valueOf(map.get("marketId"));
|
||||
shopProductService.bindProductAndBookMarket(productIds,marketId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/unbindProductAndBookMarket")
|
||||
public R unbindProductAndBookMarket(@RequestBody Map<String,Integer> map){
|
||||
shopProductService.unbindProductAndBookMarket(map.get("productId"),map.get("marketId"));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("/getProductToLabel")
|
||||
public R getProductToLabel(@RequestBody Map<String,Integer> map){
|
||||
Map<String, Object> productId = shopProductService.getProductToLabel(map.get("productId"));
|
||||
|
||||
Reference in New Issue
Block a user