Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
b506c8bf
Commit
b506c8bf
authored
Jul 27, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改删除接口
parent
3fd38aa3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
PlanController.java
...ejoin/amos/patrol/business/controller/PlanController.java
+1
-1
PlanServiceImpl.java
...in/amos/patrol/business/service/impl/PlanServiceImpl.java
+2
-2
IPlanService.java
...join/amos/patrol/business/service/intfc/IPlanService.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanController.java
View file @
b506c8bf
...
@@ -148,7 +148,7 @@ public class PlanController extends AbstractBaseController {
...
@@ -148,7 +148,7 @@ public class PlanController extends AbstractBaseController {
@ApiOperation
(
value
=
"删除巡检计划"
,
notes
=
"删除巡检计划"
)
@ApiOperation
(
value
=
"删除巡检计划"
,
notes
=
"删除巡检计划"
)
@RequestMapping
(
value
=
"/deletePlanById"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/deletePlanById"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
public
CommonResponse
deletePlanById
(
public
CommonResponse
deletePlanById
(
@ApiParam
(
value
=
"巡检计划ID"
,
required
=
true
)
@RequestBody
String
[]
param
)
{
@ApiParam
(
value
=
"巡检计划ID"
,
required
=
true
)
@RequestBody
Integer
[]
param
)
{
try
{
try
{
planService
.
delPlanById
(
param
);
planService
.
delPlanById
(
param
);
return
CommonResponseUtil
.
success
();
return
CommonResponseUtil
.
success
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanServiceImpl.java
View file @
b506c8bf
...
@@ -93,10 +93,10 @@ public class PlanServiceImpl implements IPlanService {
...
@@ -93,10 +93,10 @@ public class PlanServiceImpl implements IPlanService {
@Override
@Override
@Transactional
@Transactional
public
void
delPlanById
(
String
[]
param
)
{
public
void
delPlanById
(
Integer
[]
param
)
{
List
<
Long
>
ids
=
new
ArrayList
<
Long
>();
List
<
Long
>
ids
=
new
ArrayList
<
Long
>();
for
(
int
i
=
0
;
i
<
param
.
length
;
i
++){
for
(
int
i
=
0
;
i
<
param
.
length
;
i
++){
ids
.
add
(
Long
.
parseLong
(
param
[
i
]));
ids
.
add
(
Long
.
parseLong
(
param
[
i
]
.
toString
()
));
}
}
planDao
.
updatePlanDel
(
ids
);
planDao
.
updatePlanDel
(
ids
);
// 删除对应该计划今天往后的所有计划执行信息
// 删除对应该计划今天往后的所有计划执行信息
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/intfc/IPlanService.java
View file @
b506c8bf
...
@@ -26,7 +26,7 @@ public interface IPlanService {
...
@@ -26,7 +26,7 @@ public interface IPlanService {
/**
/**
* 巡检计划删除
* 巡检计划删除
*/
*/
void
delPlanById
(
String
[]
param
);
void
delPlanById
(
Integer
[]
param
);
/**
/**
* 巡检计划另存
* 巡检计划另存
...
...
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