|
@@ -1,5 +1,6 @@
|
|
|
package com.imed.costaccount.web;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.imed.costaccount.common.util.PageUtils;
|
|
|
import com.imed.costaccount.common.util.Result;
|
|
|
import com.imed.costaccount.model.CostAccountShare;
|
|
@@ -83,11 +84,17 @@ public class CostAccountShareController {
|
|
|
*/
|
|
|
@GetMapping("/getAllShareParamStatusById")
|
|
|
@ApiOperation("在全部分摊参数里面显示当前责任中心已经存在的分摊参数的状态")
|
|
|
- public Result getAllShareParamStatusById(Integer id){
|
|
|
+ public Result getAllShareParamStatusById(@RequestParam(defaultValue = "1", value = "current") Integer current,
|
|
|
+ @RequestParam(value = "pageSize", defaultValue = "2") Integer pageSize,
|
|
|
+ Integer id){
|
|
|
User user = (User) SecurityUtils.getSubject().getPrincipal();
|
|
|
Integer hospId = user.getHospId();
|
|
|
List<CostShareParamStatusVO> costShareParamStatusVOList= costAccountShareService.getAllShareParamStatusById(id,hospId);
|
|
|
- return Result.ok(costShareParamStatusVOList);
|
|
|
+ Page<CostShareParamStatusVO> page = new Page<>(current, pageSize);
|
|
|
+ page.setRecords(costShareParamStatusVOList);
|
|
|
+ PageUtils pageUtils = new PageUtils(page);
|
|
|
+ pageUtils.setList(page.getRecords());
|
|
|
+ return Result.ok(pageUtils);
|
|
|
}
|
|
|
|
|
|
/**
|