bug
This commit is contained in:
@@ -80,6 +80,65 @@ public class ShopProductController {
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/bindProductAndSociologyLabel")
|
||||
public R bindProductAndSociologyLabel(@RequestBody Map<String,String> map){
|
||||
String[] productIds = map.get("productId").split(",");
|
||||
Integer labelId = Integer.valueOf(map.get("labelId"));
|
||||
shopProductService.bindProductAndSociologyLabel(productIds,labelId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/unbindProductAndSociologyLabel")
|
||||
public R unbindProductAndSociologyLabel(@RequestBody Map<String,Integer> map){
|
||||
shopProductService.unbindProductAndSociologyLabel(map.get("productId"),map.get("labelId"));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/bindProductAndSociologyMarket")
|
||||
public R bindProductAndSociologyMarket(@RequestBody Map<String,String> map){
|
||||
String[] productIds = map.get("productId").split(",");
|
||||
Integer marketId = Integer.valueOf(map.get("marketId"));
|
||||
shopProductService.bindProductAndSociologyMarket(productIds,marketId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/unbindProductAndSociologyMarket")
|
||||
public R unbindProductAndSociologyMarket(@RequestBody Map<String,Integer> map){
|
||||
shopProductService.unbindProductAndSociologyMarket(map.get("productId"),map.get("marketId"));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/bindProductAndMedicineLabel")
|
||||
public R bindProductAndMedicineLabel(@RequestBody Map<String,String> map){
|
||||
String[] productIds = map.get("productId").split(",");
|
||||
Integer labelId = Integer.valueOf(map.get("labelId"));
|
||||
shopProductService.bindProductAndMedicineLabel(productIds,labelId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/unbindProductAndMedicineLabel")
|
||||
public R unbindProductAndMedicineLabel(@RequestBody Map<String,Integer> map){
|
||||
shopProductService.unbindProductAndMedicineLabel(map.get("productId"),map.get("labelId"));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("/bindProductAndMedicineMarket")
|
||||
public R bindProductAndMedicineMarket(@RequestBody Map<String,String> map){
|
||||
String[] productIds = map.get("productId").split(",");
|
||||
Integer marketId = Integer.valueOf(map.get("marketId"));
|
||||
shopProductService.bindProductAndMedicineMarket(productIds,marketId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/unbindProductAndMedicineMarket")
|
||||
public R unbindProductAndMedicineMarket(@RequestBody Map<String,Integer> map){
|
||||
shopProductService.unbindProductAndMedicineMarket(map.get("productId"),map.get("marketId"));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping("/getProductToLabel")
|
||||
public R getProductToLabel(@RequestBody Map<String,Integer> map){
|
||||
|
||||
Reference in New Issue
Block a user