提交 e033a4b7 authored 作者: 黄承天's avatar 黄承天

[指标]加分项相关修改

上级 ca024796
package com.tykj.index.controller; package com.tykj.index.controller;
import com.google.common.collect.ImmutableMap;
import com.tykj.base.result.ResultObj; import com.tykj.base.result.ResultObj;
import com.tykj.base.result.ResultUtil; import com.tykj.base.result.ResultUtil;
import com.tykj.index.entity.vo.ChartVO; import com.tykj.index.entity.vo.ChartVO;
...@@ -14,7 +13,6 @@ import org.springframework.http.ResponseEntity; ...@@ -14,7 +13,6 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
import java.util.Map;
@Api(tags = "指标相关接口") @Api(tags = "指标相关接口")
@RestController @RestController
...@@ -38,13 +36,6 @@ public class IndexInfoController { ...@@ -38,13 +36,6 @@ public class IndexInfoController {
return ResultUtil.success("修改成功"); return ResultUtil.success("修改成功");
} }
@ApiOperation("根据parentId查询剩余可用权重")
@GetMapping("/remain/weight/{parentId}")
public ResponseEntity<Map<String, String>> checkRemainWeight(@PathVariable Integer parentId) {
Double weight = indexInfoService.checkRemainWeight(parentId);
return ResponseEntity.ok(ImmutableMap.of("weight", weight.toString()));
}
@ApiOperation("根据id查图表") @ApiOperation("根据id查图表")
@GetMapping("/chart/{id}") @GetMapping("/chart/{id}")
public ResponseEntity<ChartVO> queryChart(@PathVariable Integer id) { public ResponseEntity<ChartVO> queryChart(@PathVariable Integer id) {
...@@ -59,13 +50,6 @@ public class IndexInfoController { ...@@ -59,13 +50,6 @@ public class IndexInfoController {
return ResponseEntity.ok(result); return ResponseEntity.ok(result);
} }
@ApiOperation("根据指标id更新其上级节点的数据")
@GetMapping("/update/values/{id}")
public ResponseEntity<ResultObj<Object>> updateValues(@PathVariable Integer id) {
indexInfoService.updateValue(id);
return ResultUtil.success("同步成功");
}
@ApiOperation("查询指标列表 返回的是由根节点展开的指标数据") @ApiOperation("查询指标列表 返回的是由根节点展开的指标数据")
@GetMapping @GetMapping
public ResponseEntity<List<IndexInfoVo>> findAll() { public ResponseEntity<List<IndexInfoVo>> findAll() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论