|
|
@ -88,15 +88,15 @@ public class OtherRecordsService implements IOtherRecordsService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<OtherRecordsVo.Query> query(OtherRecordsDto.Query param) { |
|
|
|
List<OtherRecordsVo.Query> patientInformationRecordList = new ArrayList<>(); |
|
|
|
public List<OtherRecordsVo.TypeAndComment> queryList(OtherRecordsDto.QueryId param) { |
|
|
|
List<OtherRecordsVo.TypeAndComment> patientInformationRecordList = new ArrayList<>(); |
|
|
|
//通过任务id 找到创建的最新的
|
|
|
|
//拿到患者平车id
|
|
|
|
PatientInformationRecordExample patientInformationRecordExample = new PatientInformationRecordExample(); |
|
|
|
patientInformationRecordExample.createCriteria().andTaskSubIdEqualTo(param.getId()); |
|
|
|
List<PatientInformationRecord> patientInformationRecords = patientInformationRecordMapper.selectByExample(patientInformationRecordExample); |
|
|
|
for (PatientInformationRecord patientInformationRecord : patientInformationRecords) { |
|
|
|
OtherRecordsVo.Query query = new OtherRecordsVo.Query(); |
|
|
|
OtherRecordsVo.TypeAndComment query = new OtherRecordsVo.TypeAndComment(); |
|
|
|
query.setComment(patientInformationRecord.getContent()); |
|
|
|
query.setType(patientInformationRecord.getInformationType()); |
|
|
|
patientInformationRecordList.add(query); |
|
|
|