| 
					
				 | 
			
			
				@@ -609,37 +609,37 @@ public class SiZyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         setlinfodao.updateApplySettled(p.getInpatientNo(), p.getAdmissTimes(), p.getLedgerSn(), YesOrNo.YES.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 跨省异地数据不参与对账,对总账时无需统计进去。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (setlinfoEntity.getFundPaySumamt() > 0 && setlinfoEntity.getInsuplcAdmdvs().startsWith("43")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            InstStlLdgChk ldgChk = new InstStlLdgChk(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ldgChk.setInsutype(setlinfoEntity.getInsutype()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ldgChk.setClrType(setlinfoEntity.getClrType()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ldgChk.setSetlOptins(setlinfoEntity.getClrOptins()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ldgChk.setStmtBegndate(setlinfoEntity.getSetlTime()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ldgChk.setStmtEnddate(setlinfoEntity.getSetlTime()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ResultVo<String> totalLedgerCheck = manageService.institutionSettlementLedgerCheck(ldgChk); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (totalLedgerCheck.getCode() != ExceptionEnum.SUCCESS.getCode()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                InstStlLdgChk detlChk = new InstStlLdgChk(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                detlChk.setSetlOptins(ldgChk.getSetlOptins()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                detlChk.setStmtBegndate(ldgChk.getStmtBegndate()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                detlChk.setStmtEnddate(ldgChk.getStmtEnddate()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                detlChk.setClrType(ldgChk.getClrType()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                detlChk.setRefdSetlFlag(YesOrNo.NO.getCodeStr()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ResultVo<List<InsSetlDetlChkRslt>> detailLedgerCheck = manageService.institutionSettlementDetailCheck(detlChk); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (detailLedgerCheck.getCode() != ExceptionEnum.SUCCESS.getCode()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    revokeSettlement(p); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    throw new BizException(ExceptionEnum.LOGICAL_ERROR, detailLedgerCheck.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                for (InsSetlDetlChkRslt insSetlDetlChkRslt : detailLedgerCheck.getData()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if (Objects.equals(insSetlDetlChkRslt.getSetlId(), setlinfoEntity.getSetlId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        if (!Objects.equals(insSetlDetlChkRslt.getStmtRslt(), "0")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            revokeSettlement(p); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            throw new BizException(ExceptionEnum.LOGICAL_ERROR, insSetlDetlChkRslt.getMemo()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        if (setlinfoEntity.getFundPaySumamt() > 0 && setlinfoEntity.getInsuplcAdmdvs().startsWith("43")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            InstStlLdgChk ldgChk = new InstStlLdgChk(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            ldgChk.setInsutype(setlinfoEntity.getInsutype()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            ldgChk.setClrType(setlinfoEntity.getClrType()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            ldgChk.setSetlOptins(setlinfoEntity.getClrOptins()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            ldgChk.setStmtBegndate(setlinfoEntity.getSetlTime()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            ldgChk.setStmtEnddate(setlinfoEntity.getSetlTime()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            ResultVo<String> totalLedgerCheck = manageService.institutionSettlementLedgerCheck(ldgChk); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            if (totalLedgerCheck.getCode() != ExceptionEnum.SUCCESS.getCode()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                InstStlLdgChk detlChk = new InstStlLdgChk(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                detlChk.setSetlOptins(ldgChk.getSetlOptins()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                detlChk.setStmtBegndate(ldgChk.getStmtBegndate()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                detlChk.setStmtEnddate(ldgChk.getStmtEnddate()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                detlChk.setClrType(ldgChk.getClrType()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                detlChk.setRefdSetlFlag(YesOrNo.NO.getCodeStr()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                ResultVo<List<InsSetlDetlChkRslt>> detailLedgerCheck = manageService.institutionSettlementDetailCheck(detlChk); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                if (detailLedgerCheck.getCode() != ExceptionEnum.SUCCESS.getCode()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                    revokeSettlement(p); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                    throw new BizException(ExceptionEnum.LOGICAL_ERROR, detailLedgerCheck.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                for (InsSetlDetlChkRslt insSetlDetlChkRslt : detailLedgerCheck.getData()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                    if (Objects.equals(insSetlDetlChkRslt.getSetlId(), setlinfoEntity.getSetlId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                        if (!Objects.equals(insSetlDetlChkRslt.getStmtRslt(), "0")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                            revokeSettlement(p); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                            throw new BizException(ExceptionEnum.LOGICAL_ERROR, insSetlDetlChkRslt.getMemo()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                        break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         queryService.saveCumInfo(setlinfoEntity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (null != p.getMedType() && p.getMedType().equals(MedType.EMERGENCY_RESCUE.getCode())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return StrUtil.format("出院结算成功。患者总费用:{}。其中基金支付:{};个账支付:{};现金支付:{}", 
			 |