|
@@ -1,6 +1,7 @@
|
|
|
package com.inkasso.factoring.acceptanceManagement.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.inkasso.adapter.util.CodeUtil;
|
|
@@ -146,8 +147,14 @@ public class CAcceptancePriceAdjustInfoServiceImpl extends ServiceImpl<CAcceptan
|
|
|
//退回
|
|
|
updateById(adjustInfo);
|
|
|
//删除货物
|
|
|
- acceptancePriceGoodsInfoService.removeBatchByIds(adjustInfo.getPriceGoodsInfoList());
|
|
|
+ //acceptancePriceGoodsInfoService.removeBatchByIds(adjustInfo.getPriceGoodsInfoList());
|
|
|
+ LambdaUpdateWrapper<CAcceptancePriceGoodsInfo> wrapper = new LambdaUpdateWrapper();
|
|
|
+ wrapper.eq(CAcceptancePriceGoodsInfo::getcAcceptancePriceAdjustInfoId,adjustInfo.getId());
|
|
|
+ acceptancePriceGoodsInfoService.remove(wrapper);
|
|
|
//新增货物
|
|
|
+ for(CAcceptancePriceGoodsInfo goods:adjustInfo.getPriceGoodsInfoList()){
|
|
|
+ goods.setcAcceptancePriceAdjustInfoId(adjustInfo.getId());
|
|
|
+ }
|
|
|
acceptancePriceGoodsInfoService.saveBatch(adjustInfo.getPriceGoodsInfoList());
|
|
|
//删除文件
|
|
|
if (CollectionUtil.isNotEmpty(adjustInfo.getDeleteFileIds())) {
|