bug
This commit is contained in:
@@ -79,6 +79,19 @@ public class BookLabelAndMarketController {
|
|||||||
return R.ok().put("result", marketTopList);
|
return R.ok().put("result", marketTopList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑商品和营销标签的排序权重
|
||||||
|
* @param map
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping("/editMarketSort")
|
||||||
|
public R editMarketSort(@RequestBody Map<String,Integer> map){
|
||||||
|
ShopProductToBookMarket toMarket = toMarketService.getById(map.get("id"));
|
||||||
|
toMarket.setSort(map.get("sort"));
|
||||||
|
toMarketService.updateById(toMarket);
|
||||||
|
return R.ok().put("result",toMarket);
|
||||||
|
}
|
||||||
|
|
||||||
@RequestMapping(path = "/getLabelById")
|
@RequestMapping(path = "/getLabelById")
|
||||||
public R getLabelById(String id) {
|
public R getLabelById(String id) {
|
||||||
return R.ok().put("result",labelService.getById(id));
|
return R.ok().put("result",labelService.getById(id));
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public class CourseSociologyMarketController {
|
|||||||
@RequestMapping("/addSociologyMarket")
|
@RequestMapping("/addSociologyMarket")
|
||||||
public R addSociologyMarket(@RequestBody CourseSociologyMarketEntity courseSociologyMarketEntity){
|
public R addSociologyMarket(@RequestBody CourseSociologyMarketEntity courseSociologyMarketEntity){
|
||||||
marketService.save(courseSociologyMarketEntity);
|
marketService.save(courseSociologyMarketEntity);
|
||||||
return R.ok();
|
return R.ok().put("market",courseSociologyMarketEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/editSociologyMarket")
|
@RequestMapping("/editSociologyMarket")
|
||||||
@@ -68,8 +68,8 @@ public class CourseSociologyMarketController {
|
|||||||
return R.error("请先清空绑定的课程后,再操作");
|
return R.error("请先清空绑定的课程后,再操作");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
marketService.save(courseSociologyMarketEntity);
|
marketService.updateById(courseSociologyMarketEntity);
|
||||||
return R.ok();
|
return R.ok().put("market",courseSociologyMarketEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(path = "/delMarket")
|
@RequestMapping(path = "/delMarket")
|
||||||
|
|||||||
@@ -226,6 +226,14 @@ public class SociologyLabelAndMarketController {
|
|||||||
return R.ok().put("result", page);
|
return R.ok().put("result", page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping("/editMarketSort")
|
||||||
|
public R editMarketSort(@RequestBody Map<String,Integer> map){
|
||||||
|
ShopProductToSociologyMarket toMarket = toMarketService.getById(map.get("id"));
|
||||||
|
toMarket.setSort(map.get("sort"));
|
||||||
|
toMarketService.updateById(toMarket);
|
||||||
|
return R.ok().put("market",toMarket);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取书标签列表
|
* 获取书标签列表
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user