Browse Source

优化取消上传

lighter 2 weeks ago
parent
commit
6a99eac13d

+ 6 - 2
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiZyService.java

@@ -292,11 +292,15 @@ public class SiZyService {
         }
         JSONObject input = exec.makeTradeHeaderWithInsureArea(SiFunction.REVOKE_HOSPITALIZATION_FEE_DETAILS, siPatInfo.getInsuplcAdmdvs());
         JSONArray data = new JSONArray();
+        Integer dbUploadedSize = queryDao.getDbUploadedSize(p.getInpatientNo(), p.getAdmissTimes(), p.getLedgerSn());
         if (ListUtil.isBlank(p.getDetailSns())) {
-            p.setDetailSns(queryDao.getUnsolidSn(p.getInpatientNo(), p.getAdmissTimes(), p.getLedgerSn()));
+            List<Integer> unsolidSns = queryDao.getUnsolidSn(p.getInpatientNo(), p.getAdmissTimes(), p.getLedgerSn());
+            if (Objects.equals(dbUploadedSize, unsolidSns.size())) {
+                unsolidSns = null;
+            }
+            p.setDetailSns(unsolidSns);
         }
         Integer dbSolidSize = queryDao.getDbSolidSize(p.getInpatientNo(), p.getAdmissTimes(), p.getLedgerSn());
-        Integer dbUploadedSize = queryDao.getDbUploadedSize(p.getInpatientNo(), p.getAdmissTimes(), p.getLedgerSn());
         if (ListUtil.isBlank(p.getDetailSns()) || Objects.equals(dbSolidSize, dbUploadedSize)) {
             p.setDetailSns(null);
             JSONObject item = new JSONObject();

+ 0 - 0
update/2025-08-14.md