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
54d10f2c
Commit
54d10f2c
authored
Dec 25, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史表中存储的current_document_id调整为applyNo删除相关代码提交
parent
74553d31
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+6
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgChangeRegistrationReformServiceImpl.java
View file @
54d10f2c
...
@@ -40,6 +40,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -40,6 +40,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
/**
* 改造变更登记服务实现类
* 改造变更登记服务实现类
...
@@ -427,16 +428,19 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -427,16 +428,19 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
}
}
public
void
deleteBatch
(
List
<
Long
>
ids
)
{
public
void
deleteBatch
(
List
<
Long
>
ids
)
{
List
<
JgChangeRegistrationReform
>
jgChangeRegistrationReformList
=
this
.
getBaseMapper
().
selectList
(
new
QueryWrapper
<
JgChangeRegistrationReform
>().
in
(
"sequence_nbr"
,
ids
));
List
<
String
>
applyNos
=
jgChangeRegistrationReformList
.
stream
().
map
(
JgChangeRegistrationReform:
:
getApplyNo
).
collect
(
Collectors
.
toList
());
JgChangeRegistrationReform
jgChangeRegistrationReform
=
new
JgChangeRegistrationReform
();
JgChangeRegistrationReform
jgChangeRegistrationReform
=
new
JgChangeRegistrationReform
();
jgChangeRegistrationReform
.
setIsDelete
(
true
);
jgChangeRegistrationReform
.
setIsDelete
(
true
);
LambdaQueryWrapper
<
JgChangeRegistrationReform
>
lambda
=
new
QueryWrapper
<
JgChangeRegistrationReform
>().
lambda
();
LambdaQueryWrapper
<
JgChangeRegistrationReform
>
lambda
=
new
QueryWrapper
<
JgChangeRegistrationReform
>().
lambda
();
lambda
.
in
(
JgChangeRegistrationReform:
:
getSequenceNbr
,
ids
);
lambda
.
in
(
JgChangeRegistrationReform:
:
getSequenceNbr
,
ids
);
this
.
update
(
jgChangeRegistrationReform
,
lambda
);
this
.
getBaseMapper
().
delete
(
lambda
);
JgChangeRegistrationReformEq
jgChangeRegistrationReformEq
=
new
JgChangeRegistrationReformEq
();
JgChangeRegistrationReformEq
jgChangeRegistrationReformEq
=
new
JgChangeRegistrationReformEq
();
jgChangeRegistrationReformEq
.
setIsDelete
(
true
);
jgChangeRegistrationReformEq
.
setIsDelete
(
true
);
LambdaQueryWrapper
<
JgChangeRegistrationReformEq
>
lambda1
=
new
QueryWrapper
<
JgChangeRegistrationReformEq
>().
lambda
();
LambdaQueryWrapper
<
JgChangeRegistrationReformEq
>
lambda1
=
new
QueryWrapper
<
JgChangeRegistrationReformEq
>().
lambda
();
lambda1
.
in
(
JgChangeRegistrationReformEq:
:
getEquipTransferId
,
ids
);
lambda1
.
in
(
JgChangeRegistrationReformEq:
:
getEquipTransferId
,
ids
);
jgChangeRegistrationReformEqMapper
.
update
(
jgChangeRegistrationReformEq
,
lambda1
);
jgChangeRegistrationReformEqMapper
.
delete
(
lambda1
);
jgRegistrationHistoryMapper
.
delete
(
new
QueryWrapper
<
JgRegistrationHistory
>().
in
(
"current_document_id"
,
applyNos
));
}
}
public
Map
<
String
,
Object
>
getDetail
(
String
currentDocumentId
,
String
equipId
)
{
public
Map
<
String
,
Object
>
getDetail
(
String
currentDocumentId
,
String
equipId
)
{
...
...
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