This commit is contained in:
wangjinlei
2024-05-21 11:03:57 +08:00
parent 009f0ea12c
commit ec6a16eb9c
2 changed files with 14 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ public class CourseToMedicineMarketEntity {
private Integer medicineMarketId;
private Integer sort;
private Date createTime;
@TableLogic

View File

@@ -161,6 +161,18 @@ public class CourseMedicineMarketController {
return R.ok();
}
/**
* 修改商品和营销标签下的排序权重
* @return
*/
@RequestMapping("/editMarketSort")
public R editMarketSort(@RequestBody Map<String,Integer> map){
CourseToMedicineMarketEntity toMarket = toMarketService.getById(map.get("id"));
toMarket.setSort(map.get("sort"));
toMarketService.updateById(toMarket);
return R.ok().put("result",toMarket);
}
@RequestMapping(path = "/delToMarket")
public R delToMarket(String marketId,String courseId) {
if(StringUtils.isNotEmpty(courseId)){