|
@@ -327,10 +327,14 @@ public class SiZyService {
|
|
|
if (null == p.getStaffId()) {
|
|
|
p.setStaffId(TokenUtil.getTokenUserId());
|
|
|
}
|
|
|
- ReadCardBizType readCardBizType = ReadCardBizType.get(p.getReadCardBizType());
|
|
|
- if (readCardBizType != ReadCardBizType.SETTLEMENT) {
|
|
|
- return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "请先读卡再做出院结算。");
|
|
|
+
|
|
|
+ if (p.getAge() >= 7 && p.getAge() <= 70) {
|
|
|
+ ReadCardBizType readCardBizType = ReadCardBizType.get(p.getReadCardBizType());
|
|
|
+ if (readCardBizType != ReadCardBizType.SETTLEMENT) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "请先读卡再做出院结算。");
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
dscginfo.setDiseCodg(setlDises.get(0).getDiagCode());
|
|
|
dscginfo.setDiseName(setlDises.get(0).getDiagName());
|
|
|
dscginfo.setDscgWay(DscgWay.ORDER_TO_LEAVE_HOSPITAL.getCode());
|