Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huang.tao
/
jmai-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b3deeb2b
authored
Jan 23, 2026
by
zhu.zewen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复更新关联数据状态为“已销毁”
parent
2b902308
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
jmai-physic/src/main/java/com/jmai/physic/entity/PhysicStorageAmpoule.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyCheckServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/entity/PhysicStorageAmpoule.java
View file @
b3deeb2b
...
...
@@ -61,5 +61,9 @@ public class PhysicStorageAmpoule extends BaseVersionEntity {
@ApiModelProperty
(
value
=
"退回人"
)
private
String
thUser
;
@ApiModelProperty
(
value
=
"关联检查ID"
)
private
Long
relatedCheckId
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
}
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyCheckServiceImpl.java
View file @
b3deeb2b
...
...
@@ -214,8 +214,9 @@ public class PhysicDestroyCheckServiceImpl extends BaseServiceImpl<PhysicDestroy
}
// 2.3)更新关联数据状态为“已销毁”
Lo
calDateTime
checkCreateTime
=
physicDestroyCheck
.
getCreateTime
();
Lo
ng
checkId
=
physicDestroyCheck
.
getId
();
Long
checkDeptId
=
physicDestroyCheck
.
getApplyDeptId
();
LocalDateTime
checkCreateTime
=
physicDestroyCheck
.
getCreateTime
();
for
(
PhysicDestroyCheckDetail
detail
:
list
)
{
LambdaUpdateWrapper
<
PhysicStorageAmpoule
>
updateWrapper
=
Wrappers
.
lambdaUpdate
(
PhysicStorageAmpoule
.
class
)
.
eq
(
PhysicStorageAmpoule:
:
getAcceptDeptId
,
checkDeptId
)
...
...
@@ -225,7 +226,9 @@ public class PhysicDestroyCheckServiceImpl extends BaseServiceImpl<PhysicDestroy
.
eq
(
PhysicStorageAmpoule:
:
getBatchNo
,
detail
.
getBatchNo
())
// 按照提交销毁审批的创建时间,之前的全部标记已销毁
.
lt
(
PhysicStorageAmpoule:
:
getCreateTime
,
checkCreateTime
)
.
set
(
PhysicStorageAmpoule:
:
getDestroyStatus
,
1
);
.
set
(
PhysicStorageAmpoule:
:
getDestroyStatus
,
1
)
.
set
(
PhysicStorageAmpoule:
:
getRelatedCheckId
,
checkId
)
.
setSql
(
"remark = CONCAT(IFNULL(remark, ''), '销毁审批通过')"
);
physicStorageAmpouleMapper
.
update
(
null
,
updateWrapper
);
}
}
...
...
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