| | |
| | | import com.ruoyi.common.constant.HttpStatus; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.smartor.domain.PatArchiveOthreInfo; |
| | | import com.smartor.domain.PatMedReq; |
| | |
| | | @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); |
| | |
| | | util.exportExcel(response, list, "患者门诊记录数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取患者门诊记录详细信息 |
| | | */ |
| | | @ApiOperation("获取患者门诊记录详细信息") |
| | | @ApiImplicitParam(name = "getInfo", value = "主键ID", dataType = "long", dataTypeClass = Long.class) |
| | | //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')") |
| | | @GetMapping(value = "getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(patMedOuthospService.selectPatMedOuthospById(id)); |
| | | } |
| | | // /** |
| | | // * 获取患者门诊记录详细信息 |
| | | // */ |
| | | // @ApiOperation("获取患者门诊记录详细信息") |
| | | // @ApiImplicitParam(name = "getInfo", value = "主键ID", dataType = "long", dataTypeClass = Long.class) |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:patouthosp:query')") |
| | | // @GetMapping(value = "getInfo/{id}") |
| | | // public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | // return success(patMedOuthospService.selectPatMedOuthospById(id)); |
| | | // } |
| | | |
| | | /** |
| | | * 新增患者门诊记录 |