代码清除

This commit is contained in:
hongchao 2025-05-06 16:11:34 +08:00
parent c640c0be1e
commit 8b55d8cc84
1 changed files with 1 additions and 35 deletions

View File

@ -478,9 +478,6 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
throw new ServiceException("bm_agreement_info修改失败"); throw new ServiceException("bm_agreement_info修改失败");
} }
} }
// if (sltInfoVo.getLeaseList().size() > 0) {
// sltAgreementInfoMapper.insertSltAgreementDetailLease(sltInfoVo.getLeaseList(), id);
// }
if (sltInfoVo.getLeaseList().size() > 0) { if (sltInfoVo.getLeaseList().size() > 0) {
List<SltAgreementInfo> filteredLeaseList = sltInfoVo.getLeaseList().stream() List<SltAgreementInfo> filteredLeaseList = sltInfoVo.getLeaseList().stream()
.filter(lease -> lease.getAgreementId().equals(sltInfoVo.getAgreementId())) .filter(lease -> lease.getAgreementId().equals(sltInfoVo.getAgreementId()))
@ -497,7 +494,6 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
if (!filteredRepairList.isEmpty()) { if (!filteredRepairList.isEmpty()) {
sltAgreementInfoMapper.insertSltAgreementDetailRepair(filteredRepairList, id); sltAgreementInfoMapper.insertSltAgreementDetailRepair(filteredRepairList, id);
} }
// sltAgreementInfoMapper.insertSltAgreementDetailRepair(sltInfoVo.getRepairList(),id);
} }
if (sltInfoVo.getScrapList().size() > 0) { if (sltInfoVo.getScrapList().size() > 0) {
List<SltAgreementInfo> filteredScrapList = sltInfoVo.getScrapList().stream() List<SltAgreementInfo> filteredScrapList = sltInfoVo.getScrapList().stream()
@ -506,7 +502,6 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
if (!filteredScrapList.isEmpty()) { if (!filteredScrapList.isEmpty()) {
sltAgreementInfoMapper.insertSltAgreementDetailScrap(filteredScrapList, id); sltAgreementInfoMapper.insertSltAgreementDetailScrap(filteredScrapList, id);
} }
// sltAgreementInfoMapper.insertSltAgreementDetailScrap(sltInfoVo.getScrapList(),id);
} }
if (sltInfoVo.getLoseList().size() > 0) { if (sltInfoVo.getLoseList().size() > 0) {
List<SltAgreementInfo> filteredLoseList = sltInfoVo.getLoseList().stream() List<SltAgreementInfo> filteredLoseList = sltInfoVo.getLoseList().stream()
@ -515,38 +510,9 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
if (!filteredLoseList.isEmpty()) { if (!filteredLoseList.isEmpty()) {
sltAgreementInfoMapper.insertSltAgreementDetailLose(filteredLoseList, id); 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);
// }
// }
} }