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
139a4db5
Commit
139a4db5
authored
Dec 15, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加批量删除约束条件
parent
d57bf1e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+9
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
139a4db5
...
...
@@ -19,6 +19,7 @@ import org.typroject.tyboot.core.rdbms.annotation.Operator;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
@@ -138,6 +139,14 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
public
void
deleteBatchData
(
List
<
Long
>
sequenceNbr
){
List
<
JyjcInspectionApplication
>
jyjcInspectionApplications
=
this
.
getBaseMapper
().
selectBatchIds
(
sequenceNbr
);
long
count
=
jyjcInspectionApplications
.
stream
().
filter
(
e
->
!
e
.
getStatus
().
equals
(
"已撤销"
)
&&
!
e
.
getStatus
().
equals
(
"已撤回"
)).
count
();
if
(
count
>
0
){
throw
new
BadRequest
(
"存在 非已撤销、已退回状态的报检单 不可删除!"
)
}
this
.
deleteBatchSeq
(
sequenceNbr
);
for
(
Long
seq
:
sequenceNbr
)
{
jyjcInspectionApplicationEquipService
.
getBaseMapper
().
deleteByApplicationSeq
(
seq
);
...
...
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