|
@@ -268,37 +268,20 @@ public class DismissService {
|
|
|
if (null != deathOrderCount && deathOrderCount > 0) {
|
|
|
return ResultVoUtil.success();
|
|
|
}
|
|
|
- if (medinfo.getMedType().equals(MedType.INJURY_HOSPITALIZATION.getCode())) {
|
|
|
- if (param.getMidSetl()) {
|
|
|
- param.setBegntime(begntime);
|
|
|
- param.setEndtime(tmpendtime);
|
|
|
- }
|
|
|
- InjuryCareQualification qualification = new InjuryCareQualification();
|
|
|
- qualification.setPatNo(patNo);
|
|
|
- qualification.setTimes(times);
|
|
|
- qualification.setLedgerSn(ledgerSn);
|
|
|
- qualification.setSid(param.getSid());
|
|
|
- qualification.setStaffId(TokenUtil.getInstance().getTokenUserId());
|
|
|
- ResultVo<String> feeCheck = injuryFeeUpld.uploadFees(siInjuryFeeUrl, qualification);
|
|
|
- if (feeCheck.getCode() != 0) {
|
|
|
- throw new BizException(ExceptionEnum.LOGICAL_ERROR, feeCheck.getMessage());
|
|
|
- }
|
|
|
- } else {
|
|
|
- Overview o = new Overview();
|
|
|
- o.setInpatientNo(patNo);
|
|
|
- o.setAdmissTimes(times);
|
|
|
- o.setLedgerSn(ledgerSn);
|
|
|
- o.setStaffId(param.getStaffId());
|
|
|
- o.setSid(param.getSid());
|
|
|
- o.setMidSetl(param.getMidSetl());
|
|
|
- if (o.getMidSetl()) {
|
|
|
- o.setBegntime(begntime);
|
|
|
- o.setEndtime(tmpendtime);
|
|
|
- }
|
|
|
- ResultVo<String> feeCheck = zySrvc.uploadFeeDetail(siZyFeeUrl, o);
|
|
|
- if (!Objects.equals(feeCheck.getCode(), ExceptionEnum.SUCCESS.getCode())) {
|
|
|
- throw new BizException(ExceptionEnum.LOGICAL_ERROR, feeCheck.getMessage());
|
|
|
- }
|
|
|
+ Overview o = new Overview();
|
|
|
+ o.setInpatientNo(patNo);
|
|
|
+ o.setAdmissTimes(times);
|
|
|
+ o.setLedgerSn(ledgerSn);
|
|
|
+ o.setStaffId(param.getStaffId());
|
|
|
+ o.setSid(param.getSid());
|
|
|
+ o.setMidSetl(param.getMidSetl());
|
|
|
+ if (o.getMidSetl()) {
|
|
|
+ o.setBegntime(begntime);
|
|
|
+ o.setEndtime(tmpendtime);
|
|
|
+ }
|
|
|
+ ResultVo<String> feeCheck = zySrvc.uploadFeeDetail(siZyFeeUrl, o);
|
|
|
+ if (!Objects.equals(feeCheck.getCode(), ExceptionEnum.SUCCESS.getCode())) {
|
|
|
+ throw new BizException(ExceptionEnum.LOGICAL_ERROR, feeCheck.getMessage());
|
|
|
}
|
|
|
}
|
|
|
return ResultVoUtil.success();
|