package com.ruoyi.web.controller.smartor; 
 | 
  
 | 
import com.ruoyi.common.core.controller.BaseController; 
 | 
import com.ruoyi.common.core.domain.AjaxResult; 
 | 
import com.smartor.domain.ServiceSLTDDeptReqVO; 
 | 
import com.smartor.domain.ServiceSLTDInhospReqVO; 
 | 
import com.smartor.domain.ServiceSLTDInhospResDTO; 
 | 
import com.smartor.service.IServiceSLTDHealthcareRecordService; 
 | 
import io.swagger.annotations.Api; 
 | 
import io.swagger.annotations.ApiOperation; 
 | 
import lombok.extern.slf4j.Slf4j; 
 | 
import org.springframework.beans.factory.annotation.Autowired; 
 | 
import org.springframework.web.bind.annotation.PostMapping; 
 | 
import org.springframework.web.bind.annotation.RequestBody; 
 | 
import org.springframework.web.bind.annotation.RequestMapping; 
 | 
import org.springframework.web.bind.annotation.RestController; 
 | 
  
 | 
import java.util.List; 
 | 
  
 | 
/** 
 | 
 * 省立同德健康记录查询Controller 
 | 
 * 
 | 
 * @author smartor 
 | 
 * @date 2025-08-14 
 | 
 */ 
 | 
@Slf4j 
 | 
@Api(description = "省立同德健康记录查询接口") 
 | 
@RestController 
 | 
@RequestMapping("/smartor/sltdHealthcareRecord") 
 | 
public class ServiceSLTDHealthcareRecordController extends BaseController { 
 | 
  
 | 
    @Autowired 
 | 
    private IServiceSLTDHealthcareRecordService serviceSLTDHealthcareRecordService; 
 | 
  
 | 
    /** 
 | 
     * 查询在院患者健康记录列表 
 | 
     */ 
 | 
    @ApiOperation("查询在院患者健康记录列表") 
 | 
    @PostMapping("/queryHealthcareRecordList") 
 | 
    public AjaxResult queryHealthcareRecordList(@RequestBody ServiceSLTDInhospReqVO reqVO) { 
 | 
        try { 
 | 
            log.info("【queryHealthcareRecordList】接收到查询请求,参数:{}", reqVO); 
 | 
  
 | 
            List<ServiceSLTDInhospResDTO> resultList = serviceSLTDHealthcareRecordService.queryHealthcareRecordList(reqVO); 
 | 
  
 | 
            log.info("【queryHealthcareRecordList】查询成功,返回{}条记录", resultList.size()); 
 | 
            return AjaxResult.success(resultList); 
 | 
  
 | 
        } catch (Exception e) { 
 | 
            log.error("【queryHealthcareRecordList】查询异常,请求参数:{}", reqVO, e); 
 | 
            return AjaxResult.error("查询健康记录失败:" + e.getMessage()); 
 | 
        } 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 采集医院用户信息 
 | 
     */ 
 | 
    @ApiOperation("采集医院用户信息") 
 | 
    @PostMapping("/queryHospUserInfoList") 
 | 
    public AjaxResult queryHospUserInfoList(@RequestBody ServiceSLTDInhospReqVO reqVO) { 
 | 
        try { 
 | 
            log.info("【queryHealthcareRecordList】接收到查询请求,参数:{}", reqVO); 
 | 
  
 | 
            Boolean b = serviceSLTDHealthcareRecordService.queryHospUserInfoList(reqVO); 
 | 
  
 | 
            log.info("【queryHospUserInfoList】查询成功,是否成功:{}", b); 
 | 
            return AjaxResult.success(b); 
 | 
  
 | 
        } catch (Exception e) { 
 | 
            log.error("【queryHospUserInfoList】查询异常,请求参数:{}", reqVO, e); 
 | 
            return AjaxResult.error("查询健康记录失败:" + e.getMessage()); 
 | 
        } 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 采集科室病区信息 
 | 
     */ 
 | 
    @ApiOperation("采集科室病区信息") 
 | 
    @PostMapping("/queryDeptWardAreaInfoList") 
 | 
    public AjaxResult queryDeptWardAreaInfoList(@RequestBody ServiceSLTDDeptReqVO reqVO) { 
 | 
        try { 
 | 
            log.info("【queryHealthcareRecordList】接收到查询请求,参数:{}", reqVO); 
 | 
  
 | 
            Boolean b = serviceSLTDHealthcareRecordService.queryDeptWardAreaInfoList(reqVO); 
 | 
  
 | 
            log.info("【queryHospUserInfoList】查询成功,是否成功:{}", b); 
 | 
            return AjaxResult.success(b); 
 | 
  
 | 
        } catch (Exception e) { 
 | 
            log.error("【queryHospUserInfoList】查询异常,请求参数:{}", reqVO, e); 
 | 
            return AjaxResult.error("查询健康记录失败:" + e.getMessage()); 
 | 
        } 
 | 
    } 
 | 
} 
 |