|
@@ -4,6 +4,7 @@ import com.imed.costaccount.common.util.Result;
|
|
|
import com.imed.costaccount.model.User;
|
|
|
import com.imed.costaccount.model.dto.CostShareLevelEditDto;
|
|
|
import com.imed.costaccount.model.dto.CostShareLevelSaveDto;
|
|
|
+import com.imed.costaccount.model.vo.CostShareLevelVO;
|
|
|
import com.imed.costaccount.service.CostShareLevelService;
|
|
|
import com.imed.costaccount.utils.PageUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -14,6 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -53,6 +55,15 @@ public class CostShareLevelController {
|
|
|
// return Result.ok(costShareLevel);
|
|
|
// }
|
|
|
|
|
|
+ @GetMapping("/getAll")
|
|
|
+ @ApiOperation("查询所有分摊层级数据")
|
|
|
+ public Result getAll(){
|
|
|
+ User user = (User) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ Integer hospId = user.getHospId();
|
|
|
+ List<CostShareLevelVO> costShareLevelVOList = costShareLevelService.getAll(hospId);
|
|
|
+ return Result.ok(costShareLevelVOList);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 保存
|
|
|
*/
|