| | |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | |
| | | @PostMapping("/selectPatMedInhospList") |
| | | public TableDataInfo selectPatMedInhosplist(@RequestBody PatMedInhosp patMedInhosp) { |
| | | PageUtils.startPageByPost(patMedInhosp.getPageNum(), patMedInhosp.getPageSize()); |
| | | SysUser user = getLoginUser().getUser(); |
| | | patMedInhosp.setOrgid(user.getOrgid()); |
| | | List<PatMedInhosp> list = patMedInhospService.selectPatMedInhospList(patMedInhosp); |
| | | long count = PageUtils.count(new ISelect() { |
| | | @Override |
| | |
| | | |
| | | @PostMapping("/selectPatMedInhospListCount") |
| | | @ApiOperation("查询出、入院看病人次和人数") |
| | | public AjaxResult selectPatMedInhospListCount(PatMedReq patMedReq) { |
| | | public AjaxResult selectPatMedInhospListCount(@RequestBody PatMedReq patMedReq) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | patMedReq.setOrgid(user.getOrgid()); |
| | | return success(patMedInhospService.selectPatMedInhospListCount(patMedReq)); |
| | | } |
| | | |