功能优化

This commit is contained in:
mashuai 2025-09-15 18:43:18 +08:00
parent f76d14c6c5
commit 0279307413
1 changed files with 6 additions and 6 deletions

View File

@ -797,7 +797,7 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService {
res = leaseApplyDetailsMapper.updateLeaseApplyDetailsOutNum(record); res = leaseApplyDetailsMapper.updateLeaseApplyDetailsOutNum(record);
leaseApplyDetails = leaseApplyDetailsMapper.getLeaseApplyDetails(record); leaseApplyDetails = leaseApplyDetailsMapper.getLeaseApplyDetails(record);
} }
if (leaseApplyDetails.getPreNum().equals(leaseApplyDetails.getAlNum()) || leaseApplyDetails.getAuditNum().equals(leaseApplyDetails.getAlNum())) { if (leaseApplyDetails.getPreNum().compareTo(leaseApplyDetails.getAlNum()) == 0 || leaseApplyDetails.getAuditNum().compareTo(leaseApplyDetails.getAlNum()) == 0) {
leaseApplyDetailsMapper.updateLeaseApplyDetailsByLeaseOutRecord(record); leaseApplyDetailsMapper.updateLeaseApplyDetailsByLeaseOutRecord(record);
} }
if (res > GlobalConstants.INT_0) { if (res > GlobalConstants.INT_0) {
@ -807,6 +807,11 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService {
res = leaseOutDetailsMapper.insertLeaseOutDetails(record); res = leaseOutDetailsMapper.insertLeaseOutDetails(record);
type.setOutNum(record.getOutNum()); type.setOutNum(record.getOutNum());
if (res > GlobalConstants.INT_0) { if (res > GlobalConstants.INT_0) {
type.setTypeId(record.getTypeId());
type.setStyle("1");
type.setModelTitle("领料出库");
type.setCode(record.getCode());
res = typeService.updateNumAddOrSubtract(type);
if (record.getMaId() != null) { if (record.getMaId() != null) {
if (record.getJiJuType() == GlobalConstants.INT_1) { if (record.getJiJuType() == GlobalConstants.INT_1) {
record.setThisCheckTime(DateUtils.getNowDate()); record.setThisCheckTime(DateUtils.getNowDate());
@ -820,11 +825,6 @@ public class LeaseOutDetailsServiceImpl implements ILeaseOutDetailsService {
type.setOutNum(BigDecimal.valueOf(GlobalConstants.INT_1)); type.setOutNum(BigDecimal.valueOf(GlobalConstants.INT_1));
type.setMaId(record.getMaId()); type.setMaId(record.getMaId());
} }
type.setTypeId(record.getTypeId());
type.setStyle("1");
type.setModelTitle("领料出库");
type.setCode(record.getCode());
res = typeService.updateNumAddOrSubtract(type);
} }
} }
return res; return res;