|  |  | 
 |  |  |  | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  | import java.util.concurrent.Executor; | 
 |  |  | import java.util.concurrent.Executors; | 
 |  |  |  | 
 |  |  | 
 |  |  |         return success(patArchiveService.selectPatArchiveByPatid(patid)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | //    /** | 
 |  |  | //     * 新增患者档案 | 
 |  |  | //     */ | 
 |  |  | //    @ApiOperation("新增患者档案") | 
 |  |  | //    //@PreAuthorize("@ss.hasPermi('smartor:patarchive:add')") | 
 |  |  | //    @Log(title = "患者档案", businessType = BusinessType.INSERT) | 
 |  |  | //    @PostMapping("/add") | 
 |  |  | //    public AjaxResult add(@RequestBody PatArchive patArchive) { | 
 |  |  | //        return toAjax(patArchiveService.insertPatArchive(patArchive)); | 
 |  |  | //    } | 
 |  |  |     /** | 
 |  |  |      * 新增患者档案 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("新增患者档案") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('smartor:patarchive:add')") | 
 |  |  |     @Log(title = "患者档案", businessType = BusinessType.INSERT) | 
 |  |  |     @PostMapping("/add") | 
 |  |  |     public AjaxResult add(@RequestBody PatArchive patArchive) { | 
 |  |  |         return toAjax(patArchiveService.insertPatArchive(patArchive)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 新增患者档案 | 
 |  |  | 
 |  |  |         long count = PageUtils.count(new ISelect() { | 
 |  |  |             @Override | 
 |  |  |             public void doSelect() { | 
 |  |  |                 patArchive.setPageNum(null); | 
 |  |  |                 patArchive.setPageSize(null); | 
 |  |  |                 patArchive.setPn(null); | 
 |  |  |                 patArchive.setPs(null); | 
 |  |  |                 patArchiveService.patInfoByContion(patArchive); | 
 |  |  |             } | 
 |  |  |         }); | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("获取患者信息") | 
 |  |  |     @PostMapping("/getPatientInfoQC") | 
 |  |  |     public TableDataInfo getPatientInfoQC(@RequestBody PatArchiveReq patArchiveReq) { | 
 |  |  |         PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize()); | 
 |  |  |     public Map<String, Object> getPatientInfoQC(@RequestBody PatArchiveReq patArchiveReq) { | 
 |  |  |         patArchiveReq.setPageNum(PageUtils.getOffset(patArchiveReq.getPageNum(), patArchiveReq.getPageSize())); | 
 |  |  |  | 
 |  |  |         LoginUser loginUser = getLoginUser(); | 
 |  |  |         SysUser user = loginUser.getUser(); | 
 |  |  |         patArchiveReq.setOrgid(user.getOrgid()); | 
 |  |  | 
 |  |  |         if (CollectionUtils.isEmpty(patArchiveReq.getLeaveldeptcodes()) || patArchiveReq.getLeaveldeptcodes().size() == 0) { | 
 |  |  |             patArchiveReq.setLeaveldeptcodes(null); | 
 |  |  |         } | 
 |  |  |         System.out.println("--------11111111:" + patArchiveReq); | 
 |  |  |         List<PatArchiveOthreInfo> patientInfo = patArchiveService.getPatientInfoQC(patArchiveReq); | 
 |  |  |         long count = PageUtils.count(new ISelect() { | 
 |  |  |             @Override | 
 |  |  |             public void doSelect() { | 
 |  |  |                 patArchiveService.getPatientInfoQC(patArchiveReq); | 
 |  |  |             } | 
 |  |  |         }); | 
 |  |  |         return getDataTable2(count, patientInfo); | 
 |  |  |         System.out.println("--------222222:" + patientInfo.size()); | 
 |  |  |         patArchiveReq.setPageSize(null); | 
 |  |  |         patArchiveReq.setPageNum(null); | 
 |  |  |         List<PatArchiveOthreInfo> patientInfoQC = patArchiveService.getPatientInfoQC(patArchiveReq); | 
 |  |  |  | 
 |  |  | //        long count = PageUtils.count(new ISelect() { | 
 |  |  | //            @Override | 
 |  |  | //            public void doSelect() { | 
 |  |  | //                patArchiveService.getPatientInfoQC(patArchiveReq); | 
 |  |  | //            } | 
 |  |  | //        }); | 
 |  |  |         return getDataTable3(patientInfoQC.size(), patientInfo); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |