| | |
| | | if (org.apache.commons.lang3.StringUtils.isNotBlank(patMedOuthosp.getSerialnum())) { |
| | | int exists = patMedOuthospMapper.countBySerialnum(targetTable, patMedOuthosp.getSerialnum()); |
| | | if (exists > 0) { |
| | | log.debug("[insert] serialnum={} 已存在于表 {},跳过插入", patMedOuthosp.getSerialnum(), targetTable); |
| | | log.info("[insert] serialnum={} 已存在于表 {},跳过插入", patMedOuthosp.getSerialnum(), targetTable); |
| | | return 0; |
| | | } |
| | | } |
| | |
| | | PatMedOuthospQueryReq req = new PatMedOuthospQueryReq(); |
| | | String deptcodes = CollectionUtils.isEmpty(patMedReq.getDeptcodeList()) ? null : String.join(",", patMedReq.getDeptcodeList()); |
| | | req.setBeginAdmitdate(patMedReq.getStartDate()); |
| | | req.setEndAdmitdate(patMedReq.getEndDate()); |
| | | req.setEndAdmitdate(DateUtils.addDays(patMedReq.getEndDate(),1)); |
| | | req.setDeptcode(deptcodes); |
| | | req.setOrgid(patMedReq.getOrgid()); |
| | | // req.setCampusid(patMedReq.getCampusid()); |