From b28a993067dd79ac390d29e030b889d9154b4aff Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Thu, 16 Jan 2025 09:31:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9A=84=E7=BB=93=E7=AE=97=E6=8F=90=E4=BA=A4bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SltAgreementInfoServiceImpl.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 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 074ec99c..fd2c14f3 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 @@ -389,10 +389,19 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService { if(countTwo!=1){ throw new ServiceException("bm_agreement_info修改失败"); } - sltAgreementInfoMapper.insertSltAgreementDetailLease(sltInfoVo.getLeaseList(),newId); - sltAgreementInfoMapper.insertSltAgreementDetailRepair(sltInfoVo.getRepairList(),newId); - sltAgreementInfoMapper.insertSltAgreementDetailScrap(sltInfoVo.getScrapList(),newId); - return sltAgreementInfoMapper.insertSltAgreementDetailLose(sltInfoVo.getLoseList(),newId); + 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); + } + return 1; } catch (Exception e) { throw new ServiceException("错误信息描述");