对没有数据的结算提交bug修复

This commit is contained in:
hongchao 2025-01-16 09:31:11 +08:00
parent 4cf7c2e397
commit b28a993067
1 changed files with 13 additions and 4 deletions

View File

@ -389,10 +389,19 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService {
if(countTwo!=1){ if(countTwo!=1){
throw new ServiceException("bm_agreement_info修改失败"); throw new ServiceException("bm_agreement_info修改失败");
} }
sltAgreementInfoMapper.insertSltAgreementDetailLease(sltInfoVo.getLeaseList(),newId); if(sltInfoVo.getLeaseList().size()>0){
sltAgreementInfoMapper.insertSltAgreementDetailRepair(sltInfoVo.getRepairList(),newId); sltAgreementInfoMapper.insertSltAgreementDetailLease(sltInfoVo.getLeaseList(),newId);
sltAgreementInfoMapper.insertSltAgreementDetailScrap(sltInfoVo.getScrapList(),newId); }
return sltAgreementInfoMapper.insertSltAgreementDetailLose(sltInfoVo.getLoseList(),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) { } catch (Exception e) {
throw new ServiceException("错误信息描述"); throw new ServiceException("错误信息描述");