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
42321050
authored
Jan 23, 2026
by
zhu.zewen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复销毁审批详情原因
parent
24c71c79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
jmai-physic/src/main/java/com/jmai/physic/entity/PhysicDestroyCheckDetail.java
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyCheckServiceImpl.java
jmai-physic/src/main/java/com/jmai/physic/entity/PhysicDestroyCheckDetail.java
View file @
42321050
...
@@ -31,4 +31,7 @@ public class PhysicDestroyCheckDetail extends BaseVersionEntity {
...
@@ -31,4 +31,7 @@ public class PhysicDestroyCheckDetail extends BaseVersionEntity {
private
String
batchNo
;
private
String
batchNo
;
@ApiModelProperty
(
value
=
"销毁数量"
)
@ApiModelProperty
(
value
=
"销毁数量"
)
private
Integer
destroyNum
;
private
Integer
destroyNum
;
@ApiModelProperty
(
value
=
"原因"
)
private
String
reason
;
}
}
jmai-physic/src/main/java/com/jmai/physic/service/impl/PhysicDestroyCheckServiceImpl.java
View file @
42321050
...
@@ -84,7 +84,10 @@ public class PhysicDestroyCheckServiceImpl extends BaseServiceImpl<PhysicDestroy
...
@@ -84,7 +84,10 @@ public class PhysicDestroyCheckServiceImpl extends BaseServiceImpl<PhysicDestroy
this
.
save
(
check
);
this
.
save
(
check
);
if
(
CollectionUtils
.
isNotEmpty
(
req
.
getCheckDetailList
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
req
.
getCheckDetailList
()))
{
req
.
getCheckDetailList
().
forEach
(
detail
->
detail
.
setCheckId
(
check
.
getId
()));
req
.
getCheckDetailList
().
forEach
(
detail
->
{
detail
.
setCheckId
(
check
.
getId
());
detail
.
setReason
(
check
.
getApplyReason
());
});
physicDestroyCheckDetailService
.
saveBatch
(
req
.
getCheckDetailList
());
physicDestroyCheckDetailService
.
saveBatch
(
req
.
getCheckDetailList
());
}
}
...
@@ -178,31 +181,31 @@ public class PhysicDestroyCheckServiceImpl extends BaseServiceImpl<PhysicDestroy
...
@@ -178,31 +181,31 @@ public class PhysicDestroyCheckServiceImpl extends BaseServiceImpl<PhysicDestroy
//创建销毁
//创建销毁
List
<
PhysicDestroyCheckDetail
>
list
=
physicDestroyCheckDetailService
.
list
(
new
LambdaQueryWrapper
<
PhysicDestroyCheckDetail
>().
eq
(
PhysicDestroyCheckDetail:
:
getCheckId
,
physicDestroyCheck
.
getId
()));
List
<
PhysicDestroyCheckDetail
>
list
=
physicDestroyCheckDetailService
.
list
(
new
LambdaQueryWrapper
<
PhysicDestroyCheckDetail
>().
eq
(
PhysicDestroyCheckDetail:
:
getCheckId
,
physicDestroyCheck
.
getId
()));
for
(
PhysicDestroyCheckDetail
physicDestroyCheckD
etail
:
list
)
{
for
(
PhysicDestroyCheckDetail
d
etail
:
list
)
{
PhysicStorageAmpoule
ampoule
=
new
PhysicStorageAmpoule
();
PhysicStorageAmpoule
ampoule
=
new
PhysicStorageAmpoule
();
ampoule
.
setPhysicName
(
physicDestroyCheckD
etail
.
getPhysicName
());
ampoule
.
setPhysicName
(
d
etail
.
getPhysicName
());
ampoule
.
setPhysicSpec
(
physicDestroyCheckD
etail
.
getPhysicSpec
());
ampoule
.
setPhysicSpec
(
d
etail
.
getPhysicSpec
());
ampoule
.
setPhysicType
(
physicDestroyCheckD
etail
.
getPhysicType
());
ampoule
.
setPhysicType
(
d
etail
.
getPhysicType
());
ampoule
.
setUnit
(
physicDestroyCheckD
etail
.
getUnit
());
ampoule
.
setUnit
(
d
etail
.
getUnit
());
ampoule
.
setFactoryName
(
physicDestroyCheckD
etail
.
getFactoryName
());
ampoule
.
setFactoryName
(
d
etail
.
getFactoryName
());
ampoule
.
setExpireDate
(
physicDestroyCheckD
etail
.
getExpireDate
());
ampoule
.
setExpireDate
(
d
etail
.
getExpireDate
());
ampoule
.
setBatchNo
(
ampoule
.
getBatchNo
());
ampoule
.
setBatchNo
(
detail
.
getBatchNo
());
ampoule
.
setPhysicNum
(
physicDestroyCheckD
etail
.
getDestroyNum
());
ampoule
.
setPhysicNum
(
d
etail
.
getDestroyNum
());
ampoule
.
setOrderNo
(
physicDestroyCheck
.
getOrderNo
());
ampoule
.
setOrderNo
(
physicDestroyCheck
.
getOrderNo
());
ampoule
.
setTransferDeptId
(
physicDestroyCheck
.
getApplyDeptId
());
ampoule
.
setTransferDeptId
(
physicDestroyCheck
.
getApplyDeptId
());
ampoule
.
setAcceptDeptId
(
sysUser
.
getDeptId
());
ampoule
.
setAcceptDeptId
(
sysUser
.
getDeptId
());
ampoule
.
setExpendNum
(
physicDestroyCheckD
etail
.
getDestroyNum
());
ampoule
.
setExpendNum
(
d
etail
.
getDestroyNum
());
ampoule
.
setRecycleReceiptNum
(
null
);
ampoule
.
setRecycleReceiptNum
(
null
);
ampoule
.
setType
(
2
);
ampoule
.
setType
(
2
);
ampoule
.
setDestroyStatus
(
1
);
ampoule
.
setDestroyStatus
(
1
);
Integer
batchNoSum
=
physicStorageAmpouleMapper
.
selectCurrentSumByBatchNo
(
physicDestroyCheckDetail
.
getPhysicName
(),
physicDestroyCheckDetail
.
getPhysicSpec
(),
physicDestroyCheckDetail
.
getFactoryName
(),
physicDestroyCheckD
etail
.
getBatchNo
());
Integer
batchNoSum
=
physicStorageAmpouleMapper
.
selectCurrentSumByBatchNo
(
detail
.
getPhysicName
(),
detail
.
getPhysicSpec
(),
detail
.
getFactoryName
(),
d
etail
.
getBatchNo
());
Integer
physicSum
=
physicStorageAmpouleMapper
.
selectCurrentSumByName
(
physicDestroyCheckDetail
.
getPhysicName
(),
physicDestroyCheckDetail
.
getPhysicSpec
(),
physicDestroyCheckD
etail
.
getFactoryName
());
Integer
physicSum
=
physicStorageAmpouleMapper
.
selectCurrentSumByName
(
detail
.
getPhysicName
(),
detail
.
getPhysicSpec
(),
d
etail
.
getFactoryName
());
ampoule
.
setBatchBalance
(
batchNoSum
-
physicDestroyCheckD
etail
.
getDestroyNum
());
ampoule
.
setBatchBalance
(
batchNoSum
-
d
etail
.
getDestroyNum
());
ampoule
.
setPhysicBalance
(
physicSum
-
physicDestroyCheckD
etail
.
getDestroyNum
());
ampoule
.
setPhysicBalance
(
physicSum
-
d
etail
.
getDestroyNum
());
physicStorageAmpouleMapper
.
insert
(
ampoule
);
physicStorageAmpouleMapper
.
insert
(
ampoule
);
}
}
}
}
...
...
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