| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | * @author smartor |
| | | * @date 2023-03-04 |
| | | */ |
| | | @Slf4j |
| | | @Api(description = "患者档案") |
| | | @RestController |
| | | @RequestMapping("/smartor/patarchive") |
| | |
| | | @ApiOperation("查询患者列表") |
| | | @PostMapping("/patInfoByContion") |
| | | public TableDataInfo patInfoByCondition(@RequestBody PatArchiveReq patArchive) { |
| | | // PageUtils.startPageByPost(patArchive.getPageNum(), patArchive.getPageSize()); |
| | | // PageUtils.startPageByPost(patArchive.getPageNum(), patArchive.getPageSize()); |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | patArchive.setOrgid(user.getOrgid()); |
| | |
| | | long count = PageUtils.count(new ISelect() { |
| | | @Override |
| | | public void doSelect() { |
| | | patArchive.setPageNum(null); |
| | | patArchive.setPageSize(null); |
| | | patArchiveService.patInfoByContion(patArchive); |
| | | } |
| | | }); |