|  |  | 
 |  |  | package com.ruoyi.web.controller.smartor; | 
 |  |  |  | 
 |  |  | import java.lang.reflect.Array; | 
 |  |  | import java.util.ArrayList; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  |  | 
 |  |  | import com.ruoyi.common.core.domain.entity.SysDept; | 
 |  |  | import com.ruoyi.common.core.domain.entity.SysUser; | 
 |  |  | import com.ruoyi.common.utils.PageUtils; | 
 |  |  | import com.smartor.domain.PatMedReq; | 
 |  |  | import com.smartor.domain.PatMedRes; | 
 |  |  | import io.netty.util.internal.ObjectUtil; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiImplicitParam; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import org.apache.commons.lang3.ObjectUtils; | 
 |  |  | import org.springframework.security.access.prepost.PreAuthorize; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
 |  |  | 
 |  |  |     @PostMapping("/selectPatMedOuthospCount") | 
 |  |  |     @ApiOperation("查询门诊看病人次和人数") | 
 |  |  |     public AjaxResult selectPatMedOuthospCount(@RequestBody PatMedReq patMedReq) { | 
 |  |  |         SysUser user = getLoginUser().getUser(); | 
 |  |  | //        List<String> deptCode = new ArrayList<>(); | 
 |  |  | //        for (Map<String, Object> map : user.getBelongDepts()) { | 
 |  |  | //            if (ObjectUtils.isNotEmpty(map.get("deptCode"))) deptCode.add(map.get("deptCode").toString()); | 
 |  |  | //        } | 
 |  |  | //        patMedReq.setDeptcodeList(deptCode); | 
 |  |  |         patMedReq.setOrgid(user.getOrgid()); | 
 |  |  |         PatMedRes patMedRes = patMedOuthospService.selectPatMedOuthospCount(patMedReq); | 
 |  |  |         return success(patMedRes); | 
 |  |  |     } |