诊断记录历史列表 uploadTime 格式修改;按时间排序

master
gongzhenkun 2 years ago
parent 21aeb4da2d
commit 7d3a48dbef

@ -300,7 +300,8 @@ public class AppController extends BaseController
tPatientHospitalDoctor.setPatientId(patientId); tPatientHospitalDoctor.setPatientId(patientId);
List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor); List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor);
List<TRecordResp> tRecordResps = tRecords.stream().filter(record -> "1".equals(record.getStatus())).collect(Collectors.toList()); List<TRecordResp> tRecordResps = tRecords.stream().filter(record -> "1".equals(record.getStatus())).collect(Collectors.toList());
return AjaxResult.success(tRecordResps); List<TRecordResp> respList = tRecordResps.stream().sorted(Comparator.comparing(TRecordResp::getUploadTime).reversed()).collect(Collectors.toList());
return AjaxResult.success(respList);
} }
/** /**

@ -83,8 +83,8 @@ public class TRecordResp
private String updateResult2; private String updateResult2;
/** 上传时间 */ /** 上传时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty("上传时间") @ApiModelProperty("上传时间")
private Date uploadTime; private Date uploadTime;

Loading…
Cancel
Save