| | |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.PatMedInhosp; |
| | | import com.smartor.domain.PatMedOuthosp; |
| | | import com.smartor.domain.PatMedReq; |
| | | import com.smartor.domain.PatMedRes; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.service.IHNGatherPatArchiveService; |
| | | import com.smartor.service.IPatMedOuthospService; |
| | | import com.smartor.service.impl.HNGatherPatArchiveServiceImpl; |
| | |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.lang.reflect.Array; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneId; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import static com.ruoyi.framework.datasource.DynamicDataSourceContextHolder.log; |
| | | |
| | | /** |
| | | * 河南采集患者信息接口Controller |
| | |
| | | /** |
| | | * 河南数据采集 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:list')") |
| | | @PostMapping("/selectGatherList") |
| | | @PostMapping("/hnDataGather") |
| | | @ApiOperation("河南数据采集") |
| | | public Integer selectUserList(@RequestBody SysUser sysUser) { |
| | | // Integer integer = ihnGatherPatArchiveService.selectUserList(null); |
| | | // Integer deptInt = ihnGatherPatArchiveService.selectDeptList(null); |
| | | // Integer icdInt = ihnGatherPatArchiveService.selectIcd10List(null); |
| | | Integer integer = ihnGatherPatArchiveService.selectPatMedInhospList(new PatMedInhosp()); |
| | | return integer; |
| | | public AjaxResult hnDataGather(@RequestBody HnDataGatherVO hnDataGatherVO) { |
| | | log.info("开始按天同步用户数据,时间范围: {} 到 {}", hnDataGatherVO.getStartOutHospTime(), hnDataGatherVO.getEndOutHospTime()); |
| | | Boolean aBoolean = ihnGatherPatArchiveService.hnDataGather(hnDataGatherVO); |
| | | return AjaxResult.success(aBoolean); |
| | | } |
| | | |
| | | } |