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
bb126eeb
Commit
bb126eeb
authored
Jul 07, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改指标删除接口为批量删除
parent
3727d0ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
IndicatorsDefCtrl.java
...keymobile/indicators/api/hytobacco/IndicatorsDefCtrl.java
+4
-4
BaseIndDefService.java
...obile/indicators/service/hytobacco/BaseIndDefService.java
+5
-3
DriveIndDefService.java
...bile/indicators/service/hytobacco/DriveIndDefService.java
+5
-3
No files found.
src/main/java/com/keymobile/indicators/api/hytobacco/IndicatorsDefCtrl.java
View file @
bb126eeb
...
@@ -62,8 +62,8 @@ public class IndicatorsDefCtrl {
...
@@ -62,8 +62,8 @@ public class IndicatorsDefCtrl {
@ApiOperation
(
value
=
"删除基础指标"
,
notes
=
"删除基础指标"
)
@ApiOperation
(
value
=
"删除基础指标"
,
notes
=
"删除基础指标"
)
@PostMapping
(
value
=
"/deleteBaseInd"
)
@PostMapping
(
value
=
"/deleteBaseInd"
)
public
void
deleteBaseInd
(
@RequestParam
String
indId
)
throws
Exception
{
public
void
deleteBaseInd
(
@RequestParam
List
<
String
>
indIds
)
throws
Exception
{
baseIndDefService
.
delete
(
indId
);
baseIndDefService
.
delete
(
indId
s
);
}
}
@ApiOperation
(
value
=
"根据id查询基础指标详情"
,
notes
=
"根据id查询基础指标详情"
)
@ApiOperation
(
value
=
"根据id查询基础指标详情"
,
notes
=
"根据id查询基础指标详情"
)
...
@@ -106,8 +106,8 @@ public class IndicatorsDefCtrl {
...
@@ -106,8 +106,8 @@ public class IndicatorsDefCtrl {
@ApiOperation
(
value
=
"删除考核指标"
,
notes
=
"删除考核指标"
)
@ApiOperation
(
value
=
"删除考核指标"
,
notes
=
"删除考核指标"
)
@PostMapping
(
value
=
"/deleteDriveInd"
)
@PostMapping
(
value
=
"/deleteDriveInd"
)
public
void
deleteDriveInd
(
@RequestParam
String
indId
)
throws
Exception
{
public
void
deleteDriveInd
(
@RequestParam
List
<
String
>
indIds
)
throws
Exception
{
driveIndDefService
.
delete
(
indId
);
driveIndDefService
.
delete
(
indId
s
);
}
}
@ApiOperation
(
value
=
"根据考核指标id获取指标详情"
,
notes
=
"根据考核指标id获取指标详情"
)
@ApiOperation
(
value
=
"根据考核指标id获取指标详情"
,
notes
=
"根据考核指标id获取指标详情"
)
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/BaseIndDefService.java
View file @
bb126eeb
...
@@ -73,9 +73,11 @@ public class BaseIndDefService {
...
@@ -73,9 +73,11 @@ public class BaseIndDefService {
return
baseIndDefMapper
.
selectOne
(
baseIndDef
);
return
baseIndDefMapper
.
selectOne
(
baseIndDef
);
}
}
public
void
delete
(
String
indId
)
throws
Exception
{
public
void
delete
(
List
<
String
>
indIds
)
throws
Exception
{
baseIndDefMapper
.
deleteByPrimaryKey
(
indId
);
for
(
String
indId
:
indIds
)
{
baseIndDefVersionService
.
updateIsDeleteStatus
(
indId
,
"1"
);
//标识已删除
baseIndDefMapper
.
deleteByPrimaryKey
(
indId
);
baseIndDefVersionService
.
updateIsDeleteStatus
(
indId
,
"1"
);
//标识已删除
}
}
}
public
Map
<
String
,
Object
>
getByPageAndKeyword
(
Integer
catalogId
,
String
keyword
,
public
Map
<
String
,
Object
>
getByPageAndKeyword
(
Integer
catalogId
,
String
keyword
,
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/DriveIndDefService.java
View file @
bb126eeb
...
@@ -135,9 +135,11 @@ public class DriveIndDefService {
...
@@ -135,9 +135,11 @@ public class DriveIndDefService {
return
result
;
return
result
;
}
}
public
void
delete
(
String
indId
)
throws
Exception
{
public
void
delete
(
List
<
String
>
indIds
)
throws
Exception
{
driveIndDefMapper
.
deleteByPrimaryKey
(
indId
);
for
(
String
indId
:
indIds
)
{
driveIndDefVersionService
.
updateIsDeleteStatus
(
indId
,
"1"
);
//标识已删除
driveIndDefMapper
.
deleteByPrimaryKey
(
indId
);
driveIndDefVersionService
.
updateIsDeleteStatus
(
indId
,
"1"
);
//标识已删除
}
}
}
public
Map
<
String
,
Object
>
getByPageAndKeyword
(
Integer
catalogId
,
String
keyword
,
public
Map
<
String
,
Object
>
getByPageAndKeyword
(
Integer
catalogId
,
String
keyword
,
...
...
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