liusheng
16 小时以前 ab2884ade73fed97d1e7d7daf4b9b5b6dee83fdd
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HNGatherPatArchiveController.java
@@ -10,9 +10,9 @@
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.smartor.domain.*;
import com.smartor.service.IHNGatherPatArchiveService;
import com.ruoyi.datacollection.service.IHNGatherPatArchiveService;
import com.smartor.service.IPatMedOuthospService;
import com.smartor.service.impl.HNGatherPatArchiveServiceImpl;
import com.ruoyi.datacollection.service.impl.HNGatherPatArchiveServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
@@ -28,6 +28,8 @@
import java.util.List;
import static com.ruoyi.framework.datasource.DynamicDataSourceContextHolder.log;
import com.ruoyi.common.core.domain.entity.Icd10;
import com.ruoyi.datacollection.domain.HnDataGatherVO;
/**
 * 河南采集患者信息接口Controller
@@ -38,6 +40,7 @@
@RestController
@RequestMapping("/smartor/hngather")
@Api(description = "河南采集患者信息接口")
public class HNGatherPatArchiveController extends BaseController {
    @Autowired
    private IHNGatherPatArchiveService ihnGatherPatArchiveService;
@@ -48,9 +51,39 @@
    @PostMapping("/hnDataGather")
    @ApiOperation("河南数据采集")
    public AjaxResult hnDataGather(@RequestBody HnDataGatherVO hnDataGatherVO) {
        log.info("开始按天同步用户数据,时间范围: {} 到 {}", hnDataGatherVO.getStartOutHospTime(), hnDataGatherVO.getEndOutHospTime());
        log.info("开始按天同步用户数据,时间范围: {} 到 {}", hnDataGatherVO.getStartTime(), hnDataGatherVO.getEndTime());
        Boolean aBoolean = ihnGatherPatArchiveService.hnDataGather(hnDataGatherVO);
        return AjaxResult.success(aBoolean);
    }
    /**
     * 查询疾病列表数据采集
     */
    @PostMapping("/selectIcd10List")
    @ApiOperation("查询疾病列表数据采集")
    public AjaxResult selectIcd10List(@RequestBody Icd10 icd10) {
        Integer integer = ihnGatherPatArchiveService.selectIcd10List(icd10);
        return AjaxResult.success(integer);
    }
    /**
     * 用户信息集合信息数据采集
     */
    @PostMapping("/selectUserList")
    @ApiOperation("用户信息集合信息数据采集")
    public AjaxResult selectUserList(@RequestBody SysUser sysUser) {
        Integer integer = ihnGatherPatArchiveService.selectUserList(sysUser);
        return AjaxResult.success(integer);
    }
    /**
     * 部门信息集合信息数据采集
     */
    @PostMapping("/selectDeptList")
    @ApiOperation("部门信息集合信息数据采集")
    public AjaxResult selectDeptList(@RequestBody SysDept sysDept) {
        Integer integer = ihnGatherPatArchiveService.selectDeptList(sysDept);
        return AjaxResult.success(integer);
    }
}