|
@@ -592,6 +592,8 @@ public class SiMzFeeService {
|
|
|
}
|
|
|
List<MzReceipt> mzReceipts = new ArrayList<>();
|
|
|
for (Map<String, Object> item : getMzRcptRes.getData()) {
|
|
|
+ int times = (int) item.get("times");
|
|
|
+ mzDao.deleteAllReceipts(param.getPatientId(), times);
|
|
|
Map<Integer, List<MzReceipt>> orderReceiptsMap = FilterUtil.cast(item.get("mzReceipts"));
|
|
|
for (Map.Entry<Integer, List<MzReceipt>> entry : orderReceiptsMap.entrySet()) {
|
|
|
mzReceipts.addAll(entry.getValue());
|
|
@@ -600,7 +602,7 @@ public class SiMzFeeService {
|
|
|
if (mzReceipts.isEmpty()) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NULL_POINTER, "没有可以上传到医保的费用。");
|
|
|
}
|
|
|
- ResultVo<String> insertSiMzFeeRes = webHisSrvc.insertSiMzFeesForThmz(webHisUrl, mzReceipts);
|
|
|
+ ResultVo<String> insertSiMzFeeRes = webHisSrvc.insertSiMzFees(webHisUrl, mzReceipts);
|
|
|
if (null == insertSiMzFeeRes) {
|
|
|
revokeOutpatientRegistration(mzptnt);
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
|