|
@@ -230,14 +230,14 @@ public class SiManageService {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, result.getString(ERROR_MESSAGE));
|
|
|
}
|
|
|
|
|
|
- public ResultVo<List<InsSetlDetlChkRslt>> institutionSettlementDetailCheck(InsSetlDetlChk prm) {
|
|
|
+ public ResultVo<List<InsSetlDetlChkRslt>> institutionSettlementDetailCheck(InsSetlDetlChk insSetlDetlChk) {
|
|
|
String snowId = SnowFlakeId.instance().nextId();
|
|
|
String filename = snowId + ".txt";
|
|
|
StringBuilder fsIn = new StringBuilder();
|
|
|
- String startdate = DateUtil.getDayStartTime(prm.getStmtBegndate());
|
|
|
- String enddate = DateUtil.getDayEndTime(prm.getStmtEnddate());
|
|
|
- List<InstSetlLdgChkBrf> brfs = dao.selectSetlChkBrfs(prm.getClrType(),
|
|
|
- prm.getSetlOptins(), startdate, enddate);
|
|
|
+ String startdate = DateUtil.getDayStartTime(insSetlDetlChk.getStmtBegndate());
|
|
|
+ String enddate = DateUtil.getDayEndTime(insSetlDetlChk.getStmtEnddate());
|
|
|
+ List<InstSetlLdgChkBrf> brfs = dao.selectSetlChkBrfs(insSetlDetlChk.getClrType(),
|
|
|
+ insSetlDetlChk.getSetlOptins(), startdate, enddate);
|
|
|
BigDecimal medfeesum = new BigDecimal("0");
|
|
|
BigDecimal psnCashPay = new BigDecimal("0");
|
|
|
BigDecimal fundpaysum = new BigDecimal("0");
|
|
@@ -250,10 +250,10 @@ public class SiManageService {
|
|
|
brf.setFundPaySumamt(DecimalUtil.minus(brf.getFundPaySumamt(), brf.getHospPay()));
|
|
|
}
|
|
|
}
|
|
|
- prm.setMedfeeSumamt(medfeesum);
|
|
|
- prm.setCashPayamt(psnCashPay);
|
|
|
- prm.setFundPaySumamt(fundpaysum);
|
|
|
- prm.setFixmedinsSetlCnt(brfs.size());
|
|
|
+ insSetlDetlChk.setMedfeeSumamt(medfeesum);
|
|
|
+ insSetlDetlChk.setCashPayamt(psnCashPay);
|
|
|
+ insSetlDetlChk.setFundPaySumamt(fundpaysum);
|
|
|
+ insSetlDetlChk.setFixmedinsSetlCnt(brfs.size());
|
|
|
for (InstSetlLdgChkBrf item : brfs) {
|
|
|
fsIn.append(item.getSetlId()).append("\t")
|
|
|
.append(item.getMdtrtId()).append("\t")
|
|
@@ -261,7 +261,7 @@ public class SiManageService {
|
|
|
.append(item.getMedfeeSumamt()).append("\t")
|
|
|
.append(item.getFundPaySumamt()).append("\t")
|
|
|
.append(item.getAcctPay()).append("\t")
|
|
|
- .append(prm.getRefdSetlFlag()).append("\n");
|
|
|
+ .append(insSetlDetlChk.getRefdSetlFlag()).append("\n");
|
|
|
}
|
|
|
try {
|
|
|
Files.write(Paths.get(filename), fsIn.toString().getBytes());
|
|
@@ -272,13 +272,13 @@ public class SiManageService {
|
|
|
ResultVo<String> uplRes = upldServcie.uploadFile(JSONObject.parseObject(fsUploadIn), filename);
|
|
|
ZipUtil.deleteFile(zipFile);
|
|
|
if (uplRes.getCode().equals(ExceptionEnum.SUCCESS.getCode())) {
|
|
|
- prm.setFileQuryNo(uplRes.getData());
|
|
|
+ insSetlDetlChk.setFileQuryNo(uplRes.getData());
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
log.error("医药机构费用结算对明细账出错", e);
|
|
|
}
|
|
|
JSONObject input = exec.makeTradeHeader(SiFunction.INSTITUTION_SETTLEMENT_DETAIL_CHECK);
|
|
|
- String ref = JSONObject.toJSONStringWithDateFormat(prm, "yyyy-MM-dd");
|
|
|
+ String ref = JSONObject.toJSONStringWithDateFormat(insSetlDetlChk, "yyyy-MM-dd");
|
|
|
input.getJSONObject("input").put("data", JSONObject.parseObject(ref));
|
|
|
JSONObject result = exec.executeTrade(input, SiFunction.INSTITUTION_SETTLEMENT_DETAIL_CHECK);
|
|
|
log.info("【操作员:{}】,医药机构费用结算对明细账:\n参数:{},\n结果:{}", TokenUtil.getTokenUserId(), input, result);
|