From 8b55d8cc8474af564638447d7c9efd4d310574f8 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Tue, 6 May 2025 16:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=B8=85=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SltAgreementInfoServiceImpl.java | 36 +------------------ 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/settlement/service/impl/SltAgreementInfoServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/settlement/service/impl/SltAgreementInfoServiceImpl.java index 02a82145..c038f8ad 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/settlement/service/impl/SltAgreementInfoServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/settlement/service/impl/SltAgreementInfoServiceImpl.java @@ -478,9 +478,6 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService { throw new ServiceException("bm_agreement_info修改失败"); } } -// if (sltInfoVo.getLeaseList().size() > 0) { -// sltAgreementInfoMapper.insertSltAgreementDetailLease(sltInfoVo.getLeaseList(), id); -// } if (sltInfoVo.getLeaseList().size() > 0) { List filteredLeaseList = sltInfoVo.getLeaseList().stream() .filter(lease -> lease.getAgreementId().equals(sltInfoVo.getAgreementId())) @@ -497,7 +494,6 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService { if (!filteredRepairList.isEmpty()) { sltAgreementInfoMapper.insertSltAgreementDetailRepair(filteredRepairList, id); } -// sltAgreementInfoMapper.insertSltAgreementDetailRepair(sltInfoVo.getRepairList(),id); } if (sltInfoVo.getScrapList().size() > 0) { List filteredScrapList = sltInfoVo.getScrapList().stream() @@ -506,7 +502,6 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService { if (!filteredScrapList.isEmpty()) { sltAgreementInfoMapper.insertSltAgreementDetailScrap(filteredScrapList, id); } -// sltAgreementInfoMapper.insertSltAgreementDetailScrap(sltInfoVo.getScrapList(),id); } if (sltInfoVo.getLoseList().size() > 0) { List filteredLoseList = sltInfoVo.getLoseList().stream() @@ -515,38 +510,9 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService { if (!filteredLoseList.isEmpty()) { sltAgreementInfoMapper.insertSltAgreementDetailLose(filteredLoseList, id); } -// sltAgreementInfoMapper.insertSltAgreementDetailLose(sltInfoVo.getLoseList(),id); } } -// else{ -// sltInfoVo.setCreateTime(DateUtils.getNowDate()); -// sltInfoVo.setCreateBy(String.valueOf(SecurityUtils.getUserId())); -// //新增 -// int countOne = sltAgreementInfoMapper.insertSltAgreementApply(sltInfoVo); -// if(countOne!=1){ -// throw new ServiceException("slt_agreement_apply新增失败"); -// } -// // 插入成功后,sltInfoVo 的 id 属性将被自动设置为新生成的主键值 -// Long newId = sltInfoVo.getId(); -// sltInfoVo.setUpdateTime(DateUtils.getNowDate()); -// int countTwo = sltAgreementInfoMapper.updateBmAgreementStatus(sltInfoVo); -// if(countTwo!=1){ -// throw new ServiceException("bm_agreement_info修改失败"); -// } -// -// if(sltInfoVo.getLeaseList().size()>0){ -// sltAgreementInfoMapper.insertSltAgreementDetailLease(sltInfoVo.getLeaseList(),newId); -// } -// if(sltInfoVo.getRepairList().size()>0){ -// sltAgreementInfoMapper.insertSltAgreementDetailRepair(sltInfoVo.getRepairList(),newId); -// } -// if(sltInfoVo.getScrapList().size()>0){ -// sltAgreementInfoMapper.insertSltAgreementDetailScrap(sltInfoVo.getScrapList(),newId); -// } -// if(sltInfoVo.getLoseList().size()>0){ -// sltAgreementInfoMapper.insertSltAgreementDetailLose(sltInfoVo.getLoseList(),newId); -// } -// } + }