支付回调不加书bug

This commit is contained in:
wangjinlei
2023-11-03 12:06:02 +08:00
parent 051373adf0
commit b89566bdf2
8 changed files with 98 additions and 9 deletions

View File

@@ -75,6 +75,19 @@ public class PointController {
return R.ok().put("page",pointList);
}
/**
* 获取脉穴文章详情
* @return
*/
@RequestMapping("/getPointDetail")
public R getPointDetail(@RequestBody Map<String,Object> map){
Integer integer = Integer.valueOf(map.get("pointId").toString());
PointEntity byId = pointService.getById(integer);
List<String> strings = JSON.parseArray(byId.getImages(), String.class);
byId.setImageList(strings);
return R.ok().put("point",byId);
}
/**
* 添加脉穴文章
* @return
@@ -111,4 +124,41 @@ public class PointController {
pointService.updateById(pointEntity);
return R.ok();
}
/**
* 获取脉穴分类列表通过父级id
* @param map
* @return
*/
@RequestMapping("/getPointCategoryByPid")
public R getPointCategoryByPid(@RequestBody Map<String,Object> map){
Integer pointCategoryId = Integer.valueOf(map.get("id").toString());
List<PointCategoryEntity> categoryListByPid = pointCategoryService.getCategoryListByPid(pointCategoryId);
return R.ok().put("category",categoryListByPid);
}
/**
* 获取脉穴文章标题列表通过分类id
* @param map
* @return
*/
@RequestMapping("/getPointsByCategoryId")
public R getPointsByCategoryId(@RequestBody Map<String,Object> map){
Integer pointCategoryId = Integer.valueOf(map.get("pointCategoryId").toString());
List<PointEntity> points = pointService.getPoints(pointCategoryId);
return R.ok().put("points",points);
}
/**
* 搜索脉穴标题列表
* @param map
* @return
*/
@RequestMapping("/searchPointList")
public R searchPointList(@RequestBody Map<String,Object> map){
String keywords = map.get("keywords").toString();
List<PointEntity> pointEntities = pointService.searchPoint(keywords);
return R.ok().put("points",pointEntities);
}
}