陈昶聿
12 小时以前 ca11d871c67ca9e1668193b95fbdc2bd9a18a280
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java
@@ -1,6 +1,7 @@
package com.ruoyi.web.controller.smartor;
import com.github.pagehelper.ISelect;
import com.ruoyi.common.annotation.AddOrgId;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.constant.HttpStatus;
import com.ruoyi.common.core.controller.BaseController;
@@ -50,7 +51,8 @@
     */
    @ApiOperation("查询患者档案列表")
    //@PreAuthorize("@ss.hasPermi('smartor:patarchive:list')")
    @PostMapping("/list")
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("list")
    public TableDataInfo list(@RequestBody PatArchive patArchive) {
        PageUtils.startPageByPost(patArchive.getPageNum(), patArchive.getPageSize());
        List<PatArchive> list = patArchiveService.selectPatArchiveList(patArchive);
@@ -87,6 +89,7 @@
    @ApiOperation("新增患者档案")
    //@PreAuthorize("@ss.hasPermi('smartor:patarchive:add')")
    @Log(title = "患者档案", businessType = BusinessType.INSERT)
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/add")
    public AjaxResult add(@RequestBody PatArchive patArchive) {
        return toAjax(patArchiveService.insertPatArchive(patArchive));
@@ -270,14 +273,14 @@
        if (CollectionUtils.isEmpty(patArchiveReq.getLeaveldeptcodes()) || patArchiveReq.getLeaveldeptcodes().size() == 0) {
            patArchiveReq.setLeaveldeptcodes(null);
        }
        System.out.println("--------11111111:" + patArchiveReq);
        System.out.println("获取患者信息-入参patArchiveReq:" + patArchiveReq);
        List<PatArchiveOthreInfo> patientInfo = patArchiveService.getPatientInfoQC(patArchiveReq);
        System.out.println("--------222222:" + patientInfo.size());
        System.out.println("获取患者信息-返回patientInfo:" + patientInfo.size());
        patArchiveReq.setPageSize(null);
        patArchiveReq.setPageNum(null);
        List<PatArchiveOthreInfo> patientInfoQC = patArchiveService.getPatientInfoQC(patArchiveReq);
        return getDataTable3(patientInfoQC.size(), patientInfo);
        Long count = patArchiveService.getPatientInfoQCCount(patArchiveReq);
        return getDataTable3(count, patientInfo);
    }
}