Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
annual-performance-indicators
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
王威威
annual-performance-indicators
Commits
e033a4b7
提交
e033a4b7
authored
7月 13, 2021
作者:
黄承天
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[指标]加分项相关修改
上级
ca024796
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
0 行增加
和
16 行删除
+0
-16
IndexInfoController.java
...n/java/com/tykj/index/controller/IndexInfoController.java
+0
-16
没有找到文件。
src/main/java/com/tykj/index/controller/IndexInfoController.java
浏览文件 @
e033a4b7
package
com
.
tykj
.
index
.
controller
;
import
com.google.common.collect.ImmutableMap
;
import
com.tykj.base.result.ResultObj
;
import
com.tykj.base.result.ResultUtil
;
import
com.tykj.index.entity.vo.ChartVO
;
...
...
@@ -14,7 +13,6 @@ import org.springframework.http.ResponseEntity;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
import
java.util.Map
;
@Api
(
tags
=
"指标相关接口"
)
@RestController
...
...
@@ -38,13 +36,6 @@ public class IndexInfoController {
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查图表"
)
@GetMapping
(
"/chart/{id}"
)
public
ResponseEntity
<
ChartVO
>
queryChart
(
@PathVariable
Integer
id
)
{
...
...
@@ -59,13 +50,6 @@ public class IndexInfoController {
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
(
"查询指标列表 返回的是由根节点展开的指标数据"
)
@GetMapping
public
ResponseEntity
<
List
<
IndexInfoVo
>>
findAll
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论