Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangkb
indicators
Commits
b6e1badb
Commit
b6e1badb
authored
Jul 08, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改指标计分规则和单位评分规则删除接口
parent
8b03a412
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
ObjScoreRuleCtrl.java
.../keymobile/indicators/api/hytobacco/ObjScoreRuleCtrl.java
+2
-2
ShortboardRuleCtrl.java
...eymobile/indicators/api/hytobacco/ShortboardRuleCtrl.java
+2
-2
ScoreRuleService.java
...mobile/indicators/service/hytobacco/ScoreRuleService.java
+4
-2
ShortboardRuleService.java
...e/indicators/service/hytobacco/ShortboardRuleService.java
+4
-2
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/ObjScoreRuleCtrl.java
View file @
b6e1badb
...
@@ -74,8 +74,8 @@ public class ObjScoreRuleCtrl {
...
@@ -74,8 +74,8 @@ public class ObjScoreRuleCtrl {
@ApiOperation
(
value
=
"删除"
,
notes
=
"删除"
)
@ApiOperation
(
value
=
"删除"
,
notes
=
"删除"
)
@PostMapping
(
value
=
"/delete"
)
@PostMapping
(
value
=
"/delete"
)
public
void
delete
(
@RequestParam
Integer
id
)
{
public
void
delete
(
@RequestParam
List
<
Integer
>
ids
)
{
scoreRuleService
.
delete
(
id
);
scoreRuleService
.
delete
(
id
s
);
}
}
@ApiOperation
(
value
=
"根据单位评分规则目录获取单位评分规则"
,
notes
=
"根据单位评分规则目录获取单位评分规则"
)
@ApiOperation
(
value
=
"根据单位评分规则目录获取单位评分规则"
,
notes
=
"根据单位评分规则目录获取单位评分规则"
)
...
...
src/main/java/com/keymobile/indicators/api/hytobacco/ShortboardRuleCtrl.java
View file @
b6e1badb
...
@@ -74,8 +74,8 @@ public class ShortboardRuleCtrl {
...
@@ -74,8 +74,8 @@ public class ShortboardRuleCtrl {
@ApiOperation
(
value
=
"删除"
,
notes
=
"删除"
)
@ApiOperation
(
value
=
"删除"
,
notes
=
"删除"
)
@PostMapping
(
value
=
"/delete"
)
@PostMapping
(
value
=
"/delete"
)
public
void
delete
(
@RequestParam
Integer
id
)
{
public
void
delete
(
@RequestParam
List
<
Integer
>
ids
)
{
shortboardRuleService
.
delete
(
id
);
shortboardRuleService
.
delete
(
id
s
);
}
}
@ApiOperation
(
value
=
"根据短板筛选规则目录获取短板筛选规则"
,
notes
=
"根据短板筛选规则目录获取短板筛选规则"
)
@ApiOperation
(
value
=
"根据短板筛选规则目录获取短板筛选规则"
,
notes
=
"根据短板筛选规则目录获取短板筛选规则"
)
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ScoreRuleService.java
View file @
b6e1badb
...
@@ -60,8 +60,10 @@ public class ScoreRuleService {
...
@@ -60,8 +60,10 @@ public class ScoreRuleService {
return
scoreRule
.
getId
();
return
scoreRule
.
getId
();
}
}
public
void
delete
(
Integer
id
)
{
public
void
delete
(
List
<
Integer
>
ids
)
{
scoreRuleMapper
.
deleteByPrimaryKey
(
id
);
for
(
Integer
id
:
ids
)
{
scoreRuleMapper
.
deleteByPrimaryKey
(
id
);
}
}
}
public
List
<
ScoreRule
>
getAll
(
String
code
){
public
List
<
ScoreRule
>
getAll
(
String
code
){
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardRuleService.java
View file @
b6e1badb
...
@@ -56,8 +56,10 @@ public class ShortboardRuleService {
...
@@ -56,8 +56,10 @@ public class ShortboardRuleService {
return
shortboardRule
.
getId
();
return
shortboardRule
.
getId
();
}
}
public
void
delete
(
Integer
id
)
{
public
void
delete
(
List
<
Integer
>
ids
)
{
shortboardRuleMapper
.
deleteByPrimaryKey
(
id
);
for
(
Integer
id
:
ids
)
{
shortboardRuleMapper
.
deleteByPrimaryKey
(
id
);
}
}
}
public
Map
<
String
,
Object
>
getByCatalogId
(
Integer
catalogId
,
int
page
,
int
rows
){
public
Map
<
String
,
Object
>
getByCatalogId
(
Integer
catalogId
,
int
page
,
int
rows
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment