|
@@ -295,7 +295,9 @@ public class SiZyService {
|
|
|
if (ListUtil.isBlank(p.getDetailSns())) {
|
|
|
p.setDetailSns(queryDao.getUnsolidSn(p.getInpatientNo(), p.getAdmissTimes(), p.getLedgerSn()));
|
|
|
}
|
|
|
- if (ListUtil.isBlank(p.getDetailSns())) {
|
|
|
+ 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)) {
|
|
|
JSONObject item = new JSONObject();
|
|
|
item.put("feedetl_sn", "0000");
|
|
|
item.put("mdtrt_id", siPatInfo.getMdtrtId());
|