|  |  | 
 |  |  |  | 
 |  |  | import com.github.pagehelper.ISelect; | 
 |  |  | import com.ruoyi.common.annotation.Log; | 
 |  |  | import com.ruoyi.common.constant.HttpStatus; | 
 |  |  | import com.ruoyi.common.core.controller.BaseController; | 
 |  |  | import com.ruoyi.common.core.domain.AjaxResult; | 
 |  |  | import com.ruoyi.common.core.domain.entity.SysUser; | 
 |  |  | 
 |  |  | import org.springframework.web.multipart.MultipartFile; | 
 |  |  |  | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  | import java.util.HashMap; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  | import java.util.concurrent.Executor; | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("获取患者信息") | 
 |  |  |     @PostMapping("/getPatientInfo") | 
 |  |  |     public TableDataInfo getPatientInfo(@RequestBody PatArchiveReq patArchiveReq) { | 
 |  |  |         PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize()); | 
 |  |  |     public Map<String, Object> getPatientInfo(@RequestBody PatArchiveReq patArchiveReq) { | 
 |  |  |         if (patArchiveReq.getPageSize() != null && patArchiveReq.getPageNum() != null) | 
 |  |  |             patArchiveReq.setPageNum(PageUtils.getOffset(patArchiveReq.getPageNum(), patArchiveReq.getPageSize())); | 
 |  |  |  | 
 |  |  |         LoginUser loginUser = getLoginUser(); | 
 |  |  |         SysUser user = loginUser.getUser(); | 
 |  |  |         patArchiveReq.setOrgid(user.getOrgid()); | 
 |  |  | 
 |  |  |             patArchiveReq.setLeaveldeptcodes(null); | 
 |  |  |         } | 
 |  |  |         List<PatArchiveOthreInfo> patientInfo = patArchiveService.getPatientInfo(patArchiveReq); | 
 |  |  |         long count = PageUtils.count(new ISelect() { | 
 |  |  |             @Override | 
 |  |  |             public void doSelect() { | 
 |  |  |                 patArchiveService.getPatientInfo(patArchiveReq); | 
 |  |  |             } | 
 |  |  |         }); | 
 |  |  |         return getDataTable2(count, patientInfo); | 
 |  |  |  | 
 |  |  |         Map<String, Object> map = new HashMap<>(); | 
 |  |  |         map.put("code", HttpStatus.SUCCESS); | 
 |  |  |         map.put("msg", "查询成功"); | 
 |  |  |         map.put("rows", patientInfo); | 
 |  |  |  | 
 |  |  |         patArchiveReq.setPageNum(null); | 
 |  |  |         patArchiveReq.setPageSize(null); | 
 |  |  |         List<PatArchiveOthreInfo> count = patArchiveService.getPatientInfo(patArchiveReq); | 
 |  |  |         map.put("total", count); | 
 |  |  |         return map; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |         if (CollectionUtils.isEmpty(patArchiveReq.getLeaveldeptcodes()) || patArchiveReq.getLeaveldeptcodes().size() == 0) { | 
 |  |  |             patArchiveReq.setLeaveldeptcodes(null); | 
 |  |  |         } | 
 |  |  |         System.out.println("--------11111111:" + patArchiveReq); | 
 |  |  |         List<PatArchiveOthreInfo> patientInfo = patArchiveService.getPatientInfoQC(patArchiveReq); | 
 |  |  |  | 
 |  |  |         System.out.println("--------222222:" + patientInfo.size()); | 
 |  |  |         patArchiveReq.setPageSize(null); | 
 |  |  |         patArchiveReq.setPageNum(null); | 
 |  |  |         List<PatArchiveOthreInfo> patientInfoQC = patArchiveService.getPatientInfoQC(patArchiveReq); |