|
@@ -161,6 +161,11 @@ public class MzBlRecordController {
|
|
|
//}
|
|
|
if (mzBlRecord.getPatientId() != null && StringUtils.isNotBlank(mzBlRecord.getPatientId())) {
|
|
|
List<MzPatientMi> mzPatientMiList = mzPatientMiService.queryByCommonParams(mzBlRecord.getPatientId());
|
|
|
+ if(mzBlRecord.getTimes() != null && mzBlRecord.getTimes() == -1){
|
|
|
+ // 发药查询门诊历史病历需要根据病人id精确查找
|
|
|
+ mzPatientMiList = mzPatientMiList.stream().filter(p -> p.getPatientId().equals(mzBlRecord.getPatientId())).collect(Collectors.toList());
|
|
|
+ mzBlRecord.setTimes(null);
|
|
|
+ }
|
|
|
if (mzPatientMiList != null && mzPatientMiList.size() > 0) {
|
|
|
List<String> patientIds = mzPatientMiList.stream().map(m -> m.getPatientId()).collect(Collectors.toList());
|
|
|
if (patientIds != null && patientIds.size() > 0) {
|