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
ca1acbf2
Commit
ca1acbf2
authored
Nov 14, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改设备无法删除提示语
parent
22b81128
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
EquipmentController.java
...s/boot/module/ugp/biz/controller/EquipmentController.java
+2
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/EquipmentController.java
View file @
ca1acbf2
...
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.CompanyDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.WelderDto
;
...
...
@@ -117,7 +118,7 @@ public class EquipmentController extends BaseController {
for
(
Long
i:
sequenceNbr
){
wrapper
.
eq
(
ProjectResource:
:
getResourceId
,
i
);
if
(!
projectResourceMapper
.
selectList
(
wrapper
).
isEmpty
()){
throw
new
Exception
(
"无法删除,
已绑定项目"
);
return
CommonResponseUtil
.
failure
(
"无法删除,设备:"
+
equipmentServiceImpl
.
getById
(
i
).
getName
()+
"
已绑定项目"
);
}
}
return
ResponseHelper
.
buildResponse
(
equipmentServiceImpl
.
removeByIds
(
sequenceNbr
));
...
...
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