|
|
|
@ -61,7 +61,7 @@ public class PmsController extends BaseController { |
|
|
|
@ApiOperation("获取患者信息列表") |
|
|
|
@PostMapping("/queryList") |
|
|
|
public JsonResponse<PageInfo<PmsPatientVo.PatientList>> queryPatientList(@RequestBody @Validated BaseDto<PmsPatientDto.QueryPatient> dto) { |
|
|
|
List<PmsPatientVo.PatientList> list = new ArrayList<>(); |
|
|
|
// List<PmsPatientVo.PatientList> list = new ArrayList<>();
|
|
|
|
|
|
|
|
// PmsPatientDto.QueryPatient param = dto.getParam();
|
|
|
|
// if (StrUtil.isNotEmpty(param.getSearchValue()) && param.getSearchValue().length() == 10) {
|
|
|
|
@ -86,18 +86,18 @@ public class PmsController extends BaseController { |
|
|
|
|
|
|
|
startPageOvertop(dto); |
|
|
|
List<PmsPatientVo.PatientList> serverList = patientService.queryPatientList(dto.getParam(), dataScope, loginUser.getUserId(), loginUser.getUsername()); |
|
|
|
if (CollUtil.isNotEmpty(serverList)) { |
|
|
|
list.addAll(serverList); |
|
|
|
} |
|
|
|
// if (CollUtil.isNotEmpty(serverList)) {
|
|
|
|
// list.addAll(serverList);
|
|
|
|
// }
|
|
|
|
|
|
|
|
// 创建一个 TreeSet,通过 Comparator 根据 patientId 去重
|
|
|
|
Set<PmsPatientVo.PatientList> uniqueSet = new TreeSet<>( |
|
|
|
Comparator.comparing(PmsPatientVo.PatientList::getPatientId) |
|
|
|
); |
|
|
|
uniqueSet.addAll(list); |
|
|
|
List<PmsPatientVo.PatientList> uniqueList = new ArrayList<>(uniqueSet); |
|
|
|
// // 创建一个 TreeSet,通过 Comparator 根据 patientId 去重
|
|
|
|
// Set<PmsPatientVo.PatientList> uniqueSet = new TreeSet<>(
|
|
|
|
// Comparator.comparing(PmsPatientVo.PatientList::getPatientId)
|
|
|
|
// );
|
|
|
|
// uniqueSet.addAll(list);
|
|
|
|
// List<PmsPatientVo.PatientList> uniqueList = new ArrayList<>(uniqueSet);
|
|
|
|
|
|
|
|
return JsonResponse.ok(new PageInfo<>(uniqueList)); |
|
|
|
return JsonResponse.ok(new PageInfo<>(serverList)); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("通过身份证号查询患者信息,方便页面展示返回和列表一样的格式") |
|
|
|
|