|
@@ -7,6 +7,8 @@ import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
+import thyyxxk.webserver.constants.sidicts.Insutype;
|
|
|
+import thyyxxk.webserver.constants.sidicts.MedType;
|
|
|
import thyyxxk.webserver.dao.his.LoginDao;
|
|
|
import thyyxxk.webserver.dao.his.casefrontsheet.BasSelectOverviewDao;
|
|
|
import thyyxxk.webserver.dao.his.casefrontsheet.CaseFrontSheetDao;
|
|
@@ -150,13 +152,16 @@ public class CaseFrontSheetService {
|
|
|
if (StringUtil.notBlank(param.getBah())) {
|
|
|
if (param.getFileStatus() == 0) {
|
|
|
list = basDao.selectPatientsForBasByBah(param);
|
|
|
+ if (list.isEmpty()) {
|
|
|
+ list = basDao.selectSignApply(param.getBah(), param.getFileStatus());
|
|
|
+ if (list.isEmpty()) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST, "没有找到此患者的未归档病案。");
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
- list = basDao.selectPatientsForBasByBah2(param);
|
|
|
- }
|
|
|
- if (list.isEmpty()) {
|
|
|
- list = basDao.selectSignApply(param.getBah(), param.getFileStatus());
|
|
|
+ list = basDao.selectPatientsFromSignedBase(param);
|
|
|
if (list.isEmpty()) {
|
|
|
- return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST, "没有此患者的结算信息或归档申请,请联系病房核实。");
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST, "没有找到此患者的已归档病案。");
|
|
|
}
|
|
|
}
|
|
|
if (param.getLateFlag() != 3) {
|
|
@@ -221,6 +226,8 @@ public class CaseFrontSheetService {
|
|
|
sheet2.setMedType("42");
|
|
|
}
|
|
|
}
|
|
|
+ sheet2.setMedTypeName(MedType.getName(sheet2.getMedType()));
|
|
|
+ sheet2.setInsutype(Insutype.getName(sheet2.getInsutype()));
|
|
|
final int hasInfant = dao.getInfant(bah, times);
|
|
|
sheet2.setHasInfant(String.valueOf(hasInfant));
|
|
|
if (null == sheet2.getDismissDate()) {
|