This commit is contained in:
cjw 2024-08-24 11:21:17 +08:00
parent ebd94660ca
commit d07208e8fb
2 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class WxCounselorController extends BaseController {
@GetMapping("/{id}")
public R<CounselorVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(counselorService.queryById(id));
return R.ok(counselorService.queryById4Wx(id));
}
/**

View File

@ -93,6 +93,8 @@ public class CounselorServiceImpl implements ICounselorService {
if (StringUtils.isEmpty(counselorVo.getGoodRate())) {
counselorVo.setGoodRate("91.9");
}
String scaleTypeName = dictService.getDictLabel("good_field", StrUtil.join(StrUtil.COMMA, counselorVo.getSpecialityField()));
counselorVo.setSpecialityFieldName(StrUtil.split(scaleTypeName, StrUtil.COMMA));
return counselorVo;
}