This commit is contained in:
wangjinlei
2024-05-21 10:34:39 +08:00
parent 40c0d0e862
commit 009f0ea12c
3 changed files with 24 additions and 3 deletions

View File

@@ -79,6 +79,19 @@ public class BookLabelAndMarketController {
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")
public R getLabelById(String id) {
return R.ok().put("result",labelService.getById(id));