| | |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.quartz.service.ICollectHISService; |
| | | import com.smartor.domain.HnDataGatherVO; |
| | | import com.smartor.domain.Icd10; |
| | | import com.smartor.service.IHNGatherPatArchiveService; |
| | | import com.ruoyi.datacollection.domain.HnDataGatherVO; |
| | | import com.ruoyi.common.core.domain.entity.Icd10; |
| | | import com.ruoyi.datacollection.service.IHNGatherPatArchiveService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @PostMapping("/collect") |
| | | @ApiOperation("同步病人相关数据") |
| | | public AjaxResult hnDataGather(@RequestBody HnDataGatherVO hnDataGatherVO) { |
| | | log.info("开始按天同步用户数据,时间范围: {} 到 {}", hnDataGatherVO.getStartTime(), hnDataGatherVO.getEndTime()); |
| | | Boolean aBoolean = ichService.hnDataGather(hnDataGatherVO); |
| | | return AjaxResult.success(aBoolean); |
| | | try { |
| | | Integer count =ichService.sync(); |
| | | return AjaxResult.success(count); |
| | | } catch (Exception ex) { |
| | | return AjaxResult.error(ex.getMessage()); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |