|
@@ -218,15 +218,16 @@ public class CourseController extends BaseController {
|
|
|
@GetMapping("/goodsBatchList")
|
|
|
public AjaxResult<Map<String,Object>> goodsBatchList(CourseQueryBo bo) {
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
- for(String tel : bo.getTelphoneList()){
|
|
|
+ for(CourseProgressQueryBo queryBo : bo.getTelphoneList()){
|
|
|
User user = iUserService.getOne(new LambdaQueryWrapper<User>()
|
|
|
- .eq(User::getTelphone, tel).last("limit 1"));
|
|
|
+ .eq(User::getTelphone, queryBo.getTelphone()).last("limit 1"));
|
|
|
if(Validator.isEmpty(user)){
|
|
|
throw new CustomException("该用户不存在");
|
|
|
}
|
|
|
bo.setUserId(user.getUserId());
|
|
|
+ bo.setGoodsId(queryBo.getGoodsId());
|
|
|
List<GoodsUserVo> list = iCourseService.goodsProgressList(bo);
|
|
|
- map.put(tel,list);
|
|
|
+ map.put(bo.getTelphone()+"-"+bo.getGoodsId(),list);
|
|
|
}
|
|
|
return AjaxResult.success(map);
|
|
|
}
|