|
|
|
@ -17,8 +17,10 @@
|
|
|
|
|
package com.logpm.aftersales.service.impl; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.logpm.aftersales.dto.AftersalesProcessingResultsDTO; |
|
|
|
|
import com.logpm.aftersales.entity.AftersalesCompletionRecipientEntity; |
|
|
|
|
import com.logpm.aftersales.entity.AftersalesProcessingMoneyEntity; |
|
|
|
|
import com.logpm.aftersales.entity.AftersalesProcessingResultsEntity; |
|
|
|
|
import com.logpm.aftersales.entity.AftersalesWorkOrderEntity; |
|
|
|
@ -106,6 +108,10 @@ public class AftersalesProcessingResultsServiceImpl extends BaseServiceImpl<Afte
|
|
|
|
|
}else{ |
|
|
|
|
//修改
|
|
|
|
|
baseMapper.updateById(aftersalesProcessingResults); |
|
|
|
|
LambdaUpdateWrapper<AftersalesProcessingMoneyEntity> completionRecipientEntityLambdaUpdateWrapper = Wrappers.<AftersalesProcessingMoneyEntity>lambdaUpdate() |
|
|
|
|
.set(AftersalesProcessingMoneyEntity::getIsDeleted, 1) |
|
|
|
|
.eq(AftersalesProcessingMoneyEntity::getProcessingResultsId, aftersalesProcessingResults.getId()); |
|
|
|
|
aftersalesProcessingMoneyService.update(completionRecipientEntityLambdaUpdateWrapper); |
|
|
|
|
if(ObjectUtil.isNotNull(aftersalesProcessingResults.getProcessingMoneyEntityList())){ |
|
|
|
|
aftersalesProcessingResults.getProcessingMoneyEntityList().forEach(i ->{ |
|
|
|
|
if(ObjectUtil.isNotNull(i.getId()) ){ |
|
|
|
@ -122,10 +128,10 @@ public class AftersalesProcessingResultsServiceImpl extends BaseServiceImpl<Afte
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if(ObjectUtil.isNotNull(aftersalesProcessingResults.getAssignList()) && ObjectUtil.isNotNull( aftersalesProcessingResults.getAssignList().get(0)) ){ |
|
|
|
|
//删除
|
|
|
|
|
aftersalesProcessingMoneyService.deleteLogic(aftersalesProcessingResults.getAssignList()); |
|
|
|
|
} |
|
|
|
|
// if(ObjectUtil.isNotNull(aftersalesProcessingResults.getAssignList()) && ObjectUtil.isNotNull( aftersalesProcessingResults.getAssignList().get(0)) ){
|
|
|
|
|
// //删除
|
|
|
|
|
// aftersalesProcessingMoneyService.deleteLogic(aftersalesProcessingResults.getAssignList());
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|