Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspect
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
912协同工作系统
项目监控管理工具
inspect
Commits
0a2950d0
提交
0a2950d0
authored
4月 20, 2020
作者:
马晨俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mcj:
修复权限配置错误问题
上级
51ad175a
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
11 行删除
+11
-11
ConfigController.java
...in/java/com/zjty/inspect/controller/ConfigController.java
+1
-1
RuleController.java
...main/java/com/zjty/inspect/controller/RuleController.java
+5
-5
TechnologyController.java
...ava/com/zjty/inspect/controller/TechnologyController.java
+5
-5
没有找到文件。
src/main/java/com/zjty/inspect/controller/ConfigController.java
浏览文件 @
0a2950d0
...
...
@@ -39,7 +39,7 @@ public class ConfigController {
*/
@PostMapping
(
"/updates"
)
@ApiOperation
(
"根据id修改参数,需要传id和value"
)
@AuthAnnotation
(
code
=
{
"1300"
})
@AuthAnnotation
(
code
=
{
"
000
1300"
})
public
ServerResponse
update
(
@RequestBody
List
<
Config
>
configs
){
configService
.
updateConfig
(
configs
);
return
ServerResponse
.
ok
(
200
);
...
...
src/main/java/com/zjty/inspect/controller/RuleController.java
浏览文件 @
0a2950d0
...
...
@@ -41,7 +41,7 @@ public class RuleController {
*/
@PostMapping
@ApiOperation
(
"新增规则"
)
@AuthAnnotation
(
code
=
{
"00
1200"
,
"
001400"
})
@AuthAnnotation
(
code
=
{
"00
01200"
,
"0
001400"
})
public
ServerResponse
<
Rule
>
rule
(
@RequestBody
Rule
rule
)
{
log
.
info
(
"规则{}"
,
rule
);
Rule
newRule
=
ruleService
.
addRulePlus
(
rule
);
...
...
@@ -56,7 +56,7 @@ public class RuleController {
*/
@PostMapping
(
value
=
"/update"
)
@ApiOperation
(
"修改规则"
)
@AuthAnnotation
(
code
=
{
"00
1200"
,
"
001400"
})
@AuthAnnotation
(
code
=
{
"00
01200"
,
"0
001400"
})
public
ServerResponse
update
(
@RequestBody
Rule
rule
)
{
ruleService
.
upRulePlus
(
rule
);
return
ServerResponse
.
ok
(
200
);
...
...
@@ -70,7 +70,7 @@ public class RuleController {
*/
@ApiOperation
(
"根据数据封装删除规则"
)
@DeleteMapping
(
value
=
"/{id}"
)
@AuthAnnotation
(
code
=
{
"00
1200"
,
"
001400"
})
@AuthAnnotation
(
code
=
{
"00
01200"
,
"0
001400"
})
public
ServerResponse
deleteByQo
(
@PathVariable
String
id
)
{
ruleService
.
deleteRulePlus
(
id
);
return
ServerResponse
.
ok
(
200
);
...
...
@@ -91,7 +91,7 @@ public class RuleController {
@ApiImplicitParam
(
name
=
"size"
,
value
=
"每页记录数"
,
required
=
true
,
paramType
=
"path"
,
dataType
=
"int"
)
})
@RequestMapping
(
value
=
"/search/{page}/{size}"
,
method
=
RequestMethod
.
POST
)
@AuthAnnotation
(
code
=
{
"00
1200"
,
"
001400"
})
@AuthAnnotation
(
code
=
{
"00
01200"
,
"0
001400"
})
public
ServerResponse
<
PageResult
<
Rule
>>
findSearch
(
@RequestBody
Map
searchMap
,
@PathVariable
int
page
,
@PathVariable
int
size
)
{
Page
<
Rule
>
pageList
=
ruleService
.
findSearch
(
searchMap
,
page
,
size
);
return
ServerResponse
.
ok
(
new
PageResult
<>(
pageList
.
getTotalElements
(),
pageList
.
getContent
()));
...
...
@@ -111,7 +111,7 @@ public class RuleController {
@PostMapping
(
"/importRules"
)
@ApiOperation
(
"导入所有规则"
)
@AuthAnnotation
(
code
=
{
"001200"
})
@AuthAnnotation
(
code
=
{
"00
0
1200"
})
public
ServerResponse
importRules
(
@RequestParam
(
"file"
)
MultipartFile
file
)
{
ruleService
.
importRules
(
file
);
return
ServerResponse
.
ok
(
""
);
...
...
src/main/java/com/zjty/inspect/controller/TechnologyController.java
浏览文件 @
0a2950d0
...
...
@@ -41,7 +41,7 @@ public class TechnologyController {
}
@GetMapping
(
"/names"
)
@ApiOperation
(
"获取所有关键技术name"
)
@AuthAnnotation
(
code
=
{
"001100"
})
@AuthAnnotation
(
code
=
{
"00
0
1100"
})
public
ServerResponse
getTechnologiesName
(){
return
ServerResponse
.
ok
(
technologyService
.
findAllTechnologyNames
());
}
...
...
@@ -52,7 +52,7 @@ public class TechnologyController {
*/
@GetMapping
(
value
=
"/{name}"
)
@ApiOperation
(
"根据name获取所有关键技术"
)
@AuthAnnotation
(
code
=
{
"001100"
})
@AuthAnnotation
(
code
=
{
"00
0
1100"
})
public
ServerResponse
getTechnologies
(
@PathVariable
String
name
){
return
ServerResponse
.
ok
(
technologyService
.
findAllTechnology
(
name
));
}
...
...
@@ -62,7 +62,7 @@ public class TechnologyController {
*/
@PostMapping
(
"/add"
)
@ApiOperation
(
"新添加关键技术"
)
@AuthAnnotation
(
code
=
{
"001100"
})
@AuthAnnotation
(
code
=
{
"00
0
1100"
})
public
ServerResponse
addTechnologies
(
@RequestBody
Technology
technology
){
technologyService
.
add
(
technology
);
return
ServerResponse
.
ok
(
200
);
...
...
@@ -70,7 +70,7 @@ public class TechnologyController {
}
@PostMapping
(
value
=
"/{id}"
)
@ApiOperation
(
"修改关键技术"
)
@AuthAnnotation
(
code
=
{
"001100"
})
@AuthAnnotation
(
code
=
{
"00
0
1100"
})
public
ServerResponse
update
(
@RequestBody
Technology
technology
,
@PathVariable
String
id
){
technology
.
setId
(
id
);
technologyService
.
update
(
technology
);
...
...
@@ -89,7 +89,7 @@ public class TechnologyController {
@ApiImplicitParam
(
name
=
"size"
,
value
=
"每页记录数"
,
required
=
true
,
paramType
=
"path"
,
dataType
=
"int"
)
})
@RequestMapping
(
value
=
"/search/{page}/{size}"
,
method
=
RequestMethod
.
POST
)
@AuthAnnotation
(
code
=
{
"001100"
})
@AuthAnnotation
(
code
=
{
"00
0
1100"
})
public
ServerResponse
<
PageResult
>
findSearch
(
@RequestBody
Map
searchMap
,
@PathVariable
int
page
,
@PathVariable
int
size
){
Page
<
Technology
>
pageList
=
technologyService
.
findSearch
(
searchMap
,
page
,
size
);
return
ServerResponse
.
ok
(
new
PageResult
<
Technology
>(
pageList
.
getTotalElements
(),
pageList
.
getContent
())
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论