| | |
| | | } |
| | | } |
| | | |
| | | public void collectHISDaysBefore(Long daysBefore) { |
| | | try { |
| | | // 获取昨天0点到今天0点的时间范围 |
| | | LocalDateTime todayZero = LocalDateTime.now().with(LocalTime.MIN); |
| | | LocalDateTime daysBeforeZero = todayZero.minusDays(daysBefore); |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | String startTime = daysBeforeZero.format(formatter); |
| | | String endTime = todayZero.format(formatter); |
| | | // HIS数据采集 |
| | | log.info("【collectHISDaysBefore】HIS开始采集数据"); |
| | | // 立即返回,后台异步执行 |
| | | CompletableFuture.runAsync(() -> { |
| | | ichService.syncMedInhosp(startTime, endTime); |
| | | }); |
| | | log.info("【collectHISDaysBefore】HIS结束采集数据"); |
| | | } catch (Exception e) { |
| | | log.error("【collectHISDaysBefore】HIS数据采集异常", e); |
| | | } |
| | | } |
| | | |
| | | public Boolean setSuccessPreachForm(ServiceSubtask serviceSubtask, String preachform, String remark, String failSendstate) { |
| | | if (preachform.equals("-1")) { |
| | | //说明都不需要执行了 |
| | |
| | | <if test="outWayName != null ">and b.out_way_name = #{outWayName}</if> |
| | | <if test="orgid != null ">and b.orgid = #{orgid}</if> |
| | | <if test="lastStartTime != null and lastStartTime != ''"> |
| | | and last_Update_Time >= to_date(#{lastStartTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | and last_Update_Time >= (to_date(#{lastStartTime}, 'YYYY-MM-DD HH24:MI:SS') - 1) |
| | | </if> |
| | | <if test="lastEndTime != null and lastEndTime != ''"> |
| | | and last_Update_Time <= to_date(#{lastEndTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | and last_Update_Time <= (to_date(#{lastEndTime}, 'YYYY-MM-DD HH24:MI:SS') - 1) |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | log.info("手术申请入参类型为:{}", type); |
| | | addOperationInfo(dataMap); |
| | | return true; |
| | | case "SM_SQ_ShouShuAP": |
| | | log.info("手术安排入参类型为:{}", type); |
| | | return true; |
| | | case "SM_SQ_CheXiao": |
| | | log.info("手术撤销入参类型为:{}", type); |
| | | return true; |
| | | case "TJ_YW_BaoGaoXX": |
| | | log.info("体检报告入参类型为:{}", type); |
| | | return true; |