|
@@ -1,15 +1,12 @@
|
|
|
package com.diagbot.service.impl;
|
|
|
-
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.dto.CheckInfoDTO;
|
|
|
-import com.diagbot.dto.DoctorAdviceDTO;
|
|
|
import com.diagbot.entity.MedPacsInfo;
|
|
|
import com.diagbot.mapper.MedPacsInfoMapper;
|
|
|
import com.diagbot.service.MedPacsInfoService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.diagbot.vo.CheckInfoVO;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-
|
|
|
import java.util.HashSet;
|
|
|
import java.util.List;
|
|
|
import java.util.Set;
|
|
@@ -32,14 +29,15 @@ public class MedPacsInfoServiceImpl extends ServiceImpl<MedPacsInfoMapper, MedPa
|
|
|
|
|
|
Set<String> infoSet = new HashSet<>();
|
|
|
for (String s : infos) {
|
|
|
- if (s.contains("检查")) {
|
|
|
+ if (s.contains("检查:")) {
|
|
|
String[] split = s.split("、");
|
|
|
for (String info : split) {
|
|
|
String[] targetInfos = info.split(":");
|
|
|
for (String targetInfo : targetInfos) {
|
|
|
if (!targetInfo.contains("检查")) {
|
|
|
String[] target = targetInfo.split(",");
|
|
|
- infoSet.add(target[0] + ")");
|
|
|
+ // infoSet.add(target[0] + ")");
|
|
|
+ infoSet.add(target[0]);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -48,6 +46,8 @@ public class MedPacsInfoServiceImpl extends ServiceImpl<MedPacsInfoMapper, MedPa
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ String s = checkInfoVO.getBehospitalCode();
|
|
|
+ checkInfoVO.setBehospitalCode( s.split("_")[0]);
|
|
|
IPage<CheckInfoDTO> page = this.baseMapper.getCheckInfo(checkInfoVO, infoSet);
|
|
|
return page;
|
|
|
}
|