mirror of
https://gitee.com/guchengwuyue/crm.git
synced 2025-12-06 17:08:28 +08:00
合同审核完成如果关联商机同步商机状态
This commit is contained in:
parent
1cfc0a784b
commit
ad2e1f10a2
@ -355,6 +355,14 @@ public class CrmContractServiceImpl implements CrmContractService {
|
|||||||
customerDO.setPurchaseTimes(customerDO.getPurchaseTimes() + 1);
|
customerDO.setPurchaseTimes(customerDO.getPurchaseTimes() + 1);
|
||||||
customerDO.setPurchaseTotal(customerDO.getPurchaseTotal().add(crmContractDO.getMoney()));
|
customerDO.setPurchaseTotal(customerDO.getPurchaseTotal().add(crmContractDO.getMoney()));
|
||||||
customerMapper.updateById(customerDO);
|
customerMapper.updateById(customerDO);
|
||||||
|
if(crmContractDO.getBusinessId() != null && crmContractDO.getBusinessId() > 0){
|
||||||
|
crmBusinessMapper.update(CrmBusinessDO.builder()
|
||||||
|
.isEnd(ShopCommonEnum.IS_STATUS_1.getValue())
|
||||||
|
.remark("合同已签署成交")
|
||||||
|
.build(),
|
||||||
|
new LambdaQueryWrapper<CrmBusinessDO>()
|
||||||
|
.eq(CrmBusinessDO::getId,crmContractDO.getBusinessId()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
crmFlowLogDO.setStatus(ShopCommonEnum.IS_STATUS_1.getValue());//审核通过
|
crmFlowLogDO.setStatus(ShopCommonEnum.IS_STATUS_1.getValue());//审核通过
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user