|
@@ -216,11 +216,11 @@ public class CourseController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("批量查询用户拥有的商品进度")
|
|
@ApiOperation("批量查询用户拥有的商品进度")
|
|
|
- @GetMapping("/goodsBatchList")
|
|
|
|
|
- public AjaxResult<List<GoodsBatchListVo>> goodsBatchList(CourseQueryBo bo) {
|
|
|
|
|
|
|
+ @PostMapping("/goodsBatchList")
|
|
|
|
|
+ public AjaxResult<List<GoodsBatchListVo>> goodsBatchList(@RequestBody CourseQueryBo bo) {
|
|
|
List<GoodsBatchListVo> listVos = new ArrayList<>();
|
|
List<GoodsBatchListVo> listVos = new ArrayList<>();
|
|
|
if (CollectionUtils.isEmpty(bo.getTelphoneList())){
|
|
if (CollectionUtils.isEmpty(bo.getTelphoneList())){
|
|
|
- return null;
|
|
|
|
|
|
|
+ return AjaxResult.success(listVos);
|
|
|
}
|
|
}
|
|
|
for(CourseProgressQueryBo queryBo : bo.getTelphoneList()){
|
|
for(CourseProgressQueryBo queryBo : bo.getTelphoneList()){
|
|
|
User user = iUserService.getOne(new LambdaQueryWrapper<User>()
|
|
User user = iUserService.getOne(new LambdaQueryWrapper<User>()
|
|
@@ -228,15 +228,20 @@ public class CourseController extends BaseController {
|
|
|
if(Validator.isEmpty(user)){
|
|
if(Validator.isEmpty(user)){
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
- GoodsBatchListVo vo = new GoodsBatchListVo();
|
|
|
|
|
- vo.setUserId(user.getUserId());
|
|
|
|
|
- vo.setGoodsId(queryBo.getGoodsId());
|
|
|
|
|
- vo.setTelphone(queryBo.getTelphone());
|
|
|
|
|
|
|
+ bo.setUserId(user.getUserId());
|
|
|
|
|
+ bo.setGoodsId(queryBo.getGoodsId());
|
|
|
List<GoodsUserVo> list = iCourseService.goodsProgressList(bo);
|
|
List<GoodsUserVo> list = iCourseService.goodsProgressList(bo);
|
|
|
- vo.setList(list);
|
|
|
|
|
|
|
+ if (CollectionUtils.isNotEmpty(list)){
|
|
|
|
|
+ GoodsBatchListVo vo = new GoodsBatchListVo();
|
|
|
|
|
+ vo.setUserId(user.getUserId());
|
|
|
|
|
+ vo.setGoodsId(queryBo.getGoodsId());
|
|
|
|
|
+ vo.setTelphone(queryBo.getTelphone());
|
|
|
|
|
+ vo.setList(list);
|
|
|
|
|
+ listVos.add(vo);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if (CollectionUtils.isEmpty(listVos)){
|
|
if (CollectionUtils.isEmpty(listVos)){
|
|
|
- return null;
|
|
|
|
|
|
|
+ return AjaxResult.success(listVos);
|
|
|
}
|
|
}
|
|
|
return AjaxResult.success(listVos);
|
|
return AjaxResult.success(listVos);
|
|
|
}
|
|
}
|