|
@@ -241,6 +241,13 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
.eq("hospital_id", getDetailVO.getHospitalId())
|
|
|
.eq("behospital_code", getDetailVO.getBehospitalCode()), false
|
|
|
);
|
|
|
+ //获取住院次数
|
|
|
+ List<BehospitalInfo> behospitalInfos = getBaseMapper().selectList(new QueryWrapper<BehospitalInfo>()
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .eq("hospital_id", getDetailVO.getHospitalId())
|
|
|
+ .eq("file_code", behospitalInfo.getFileCode())
|
|
|
+ );
|
|
|
+
|
|
|
|
|
|
List<String> paramList = getDetailVO.getParamStr();// 参数列表
|
|
|
|
|
@@ -253,6 +260,9 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
if (null != homePage && StringUtils.isNotEmpty(homePage.getAge()) && StringUtils.isNotEmpty(homePage.getAgeUnit())) {
|
|
|
behosDTO.setAge(homePage.getAge() + homePage.getAgeUnit());
|
|
|
}
|
|
|
+ if (null != behospitalInfos && ListUtil.isNotEmpty(behospitalInfos)) {
|
|
|
+ behosDTO.setLiveHospitalNum(Integer.valueOf(behospitalInfos.size()));
|
|
|
+ }
|
|
|
res.put("beHospital", behosDTO);
|
|
|
}
|
|
|
|