对没有数据的结算提交bug修复
This commit is contained in:
parent
4cf7c2e397
commit
b28a993067
|
|
@ -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("错误信息描述");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue