Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
skboot-zhongye
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
8ed94dd8
由
sonin
编写于
2025-04-09 16:55:45 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
维保任务删除接口
1 个父辈
c8a177b0
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
23 行增加
和
7 行删除
sk-module-equipment/src/main/java/com/skua/modules/equipment/controller/web/EquipmentMaintainTaskController.java
sk-module-equipment/src/main/java/com/skua/modules/equipment/controller/web/EquipmentMaintainTaskController.java
查看文件 @
8ed94dd
...
...
@@ -8,13 +8,7 @@ import java.util.Map;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -125,4 +119,26 @@ public class EquipmentMaintainTaskController {
return
result
;
}
/**
* <pre>
* 通过id删除
* </pre>
* @param id
* @return
* @author 开发者姓名, 开发时间
* @Description: TODO(这里描述这个方法的需求变更情况)
*/
@AutoLog
(
value
=
"维保任务-通过id删除"
)
@ApiOperation
(
value
=
"维保任务-通过id删除"
,
notes
=
"维保任务-通过id删除"
)
@DeleteMapping
(
value
=
"/delete"
)
public
Result
<?>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
try
{
iEquipmentMaintainTaskService
.
removeById
(
id
);
}
catch
(
Exception
e
)
{
log
.
error
(
"删除失败"
,
e
.
getMessage
());
return
Result
.
error
(
"删除失败!"
);
}
return
Result
.
ok
(
"删除成功!"
);
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论