This commit is contained in:
mashuai 2025-05-22 16:00:09 +08:00
parent 6b5ed38cbe
commit e112ae1a0a
1 changed files with 2 additions and 0 deletions

View File

@ -796,6 +796,7 @@ public class BackApplyServiceImpl implements BackApplyService {
if (addLeaseTaskResult) {
if (StringUtils.isNotNull(backApplyInfoId)) {
for (BackApplyInfo leaseApplyDetails : leaseApplyDetailsList) {
Integer backNum = leaseApplyDetails.getBackNum();
// 首先判断附件是否存在
if (CollectionUtils.isNotEmpty(leaseApplyDetails.getFileList())) {
for (FileInfo fileInfo : leaseApplyDetails.getFileList()) {
@ -863,6 +864,7 @@ public class BackApplyServiceImpl implements BackApplyService {
//更新结算表 slt_agreement_info
leaseApplyDetails.setAgreementId(bean.getAgreementId());
leaseApplyDetails.setEndTime(backTime);
leaseApplyDetails.setBackNum(backNum);
int res = updateSlt4Bean(leaseApplyDetails);
if (res == 0) {
throw new RuntimeException("该机具未被领料使用");