package com.ruoyi.web.controller.smartor; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.entity.SysDept; import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.PageUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.smartor.domain.*; import com.smartor.service.IHNGatherPatArchiveService; import com.smartor.service.IPatMedOuthospService; import com.smartor.service.impl.HNGatherPatArchiveServiceImpl; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; 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 * * @author smartor * @date 2025-07-09 */ @RestController @RequestMapping("/smartor/hngather") @Api(description = "河南采集患者信息接口") public class HNGatherPatArchiveController extends BaseController { @Autowired private IHNGatherPatArchiveService ihnGatherPatArchiveService; /** * 河南数据采集 */ @PostMapping("/hnDataGather") @ApiOperation("河南数据采集") public AjaxResult hnDataGather(@RequestBody HnDataGatherVO hnDataGatherVO) { log.info("开始按天同步用户数据,时间范围: {} 到 {}", hnDataGatherVO.getStartOutHospTime(), hnDataGatherVO.getEndOutHospTime()); Boolean aBoolean = ihnGatherPatArchiveService.hnDataGather(hnDataGatherVO); return AjaxResult.success(aBoolean); } }