liusheng
5 天以前 d7fd24cda7b8b5124fca826fa4301cdb3acdb6b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package com.ruoyi.web.controller.smartor;
 
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
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());
        }
    }
}