咨询师列表微信端
This commit is contained in:
parent
aa4dfa7cd3
commit
a25a6ebd1f
|
@ -1,6 +1,5 @@
|
|||
package org.dromara.scale.controller.wx;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.dromara.common.core.domain.R;
|
||||
|
@ -46,14 +45,12 @@ public class WxCounselorController extends BaseController {
|
|||
private final ICounselorExperienceService experienceService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 查询心理咨询师列表
|
||||
*/
|
||||
@SaCheckPermission("sys:counselor:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo<CounselorVo> list(CounselorBo bo, PageQuery pageQuery) {
|
||||
return counselorService.queryPageList(bo, pageQuery);
|
||||
@GetMapping("/pageList")
|
||||
public TableDataInfo<CounselorVo> list(QueryCounselorBo bo, PageQuery pageQuery) {
|
||||
return counselorService.queryPageList4Wx(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -62,7 +62,6 @@ public class CounselorVo implements Serializable {
|
|||
/**
|
||||
* 封面组
|
||||
*/
|
||||
|
||||
private String covers;
|
||||
|
||||
@Translation(type = TransConstant.OSS_ID_TO_URL)
|
||||
|
@ -116,5 +115,11 @@ public class CounselorVo implements Serializable {
|
|||
*/
|
||||
private String goodRate;
|
||||
|
||||
@Translation(type = TransConstant.OSS_ID_TO_URL)
|
||||
private Long avatarUrl;
|
||||
/**
|
||||
* 咨询数量
|
||||
*/
|
||||
private Integer reservationNum;
|
||||
|
||||
}
|
||||
|
|
|
@ -117,7 +117,15 @@ public class CounselorServiceImpl implements ICounselorService {
|
|||
|
||||
@Override
|
||||
public TableDataInfo<CounselorVo> queryPageList4Wx(QueryCounselorBo bo, PageQuery pageQuery) {
|
||||
return null;
|
||||
LambdaQueryWrapper<Counselor> lqw = new LambdaQueryWrapper<>();
|
||||
Page<CounselorVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
List<CounselorVo> records = result.getRecords();
|
||||
for (CounselorVo one : records) {
|
||||
SysUserVo user = userService.selectUserById(one.getId());
|
||||
one.setAvatarUrl(user.getAvatar());
|
||||
one.setReservationNum(100);
|
||||
}
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue