Commit d4aad8ed authored by yanghao's avatar yanghao

chore: 添加客户更新首次成交时间的接口

parent eaabfcd9
package cn.iocoder.yudao.module.customer.service.api; package cn.iocoder.yudao.module.customer.service.api;
import cn.iocoder.yudao.module.customer.dal.dataobject.customer.CustomerDO;
import cn.iocoder.yudao.module.customer.dal.dataobject.customerContacts.CustomerContactsDO; import cn.iocoder.yudao.module.customer.dal.dataobject.customerContacts.CustomerContactsDO;
import cn.iocoder.yudao.module.customer.service.customer.CustomerService; import cn.iocoder.yudao.module.customer.service.customer.CustomerService;
import cn.iocoder.yudao.module.customer.service.customerContacts.CustomerContactsService; import cn.iocoder.yudao.module.customer.service.customerContacts.CustomerContactsService;
...@@ -10,6 +11,7 @@ import cn.iocoder.yudao.module.ecw.dal.dataobject.country.CountryDO; ...@@ -10,6 +11,7 @@ import cn.iocoder.yudao.module.ecw.dal.dataobject.country.CountryDO;
import cn.iocoder.yudao.module.ecw.enums.CustomerCreateFromEnum; import cn.iocoder.yudao.module.ecw.enums.CustomerCreateFromEnum;
import cn.iocoder.yudao.module.ecw.enums.CustomerStatusEnum; import cn.iocoder.yudao.module.ecw.enums.CustomerStatusEnum;
import cn.iocoder.yudao.module.ecw.service.country.CountryService; import cn.iocoder.yudao.module.ecw.service.country.CountryService;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -102,4 +104,12 @@ public class CustomerApiImpl implements CustomerApi { ...@@ -102,4 +104,12 @@ public class CustomerApiImpl implements CustomerApi {
public void approvalCustomerTransfer(String approveId, Integer result) { public void approvalCustomerTransfer(String approveId, Integer result) {
customerService.approvalCustomerTransfer(approveId, result); customerService.approvalCustomerTransfer(approveId, result);
} }
@Override
public void fillFirstDealTimeIfNull(Long customerId, Date firstDealTime) {
customerService.update(new LambdaUpdateWrapper<CustomerDO>()
.set(CustomerDO::getFirstDealTime, firstDealTime)
.isNull(CustomerDO::getFirstDealTime)
.eq(CustomerDO::getId, customerId));
}
} }
package cn.iocoder.yudao.module.ecw.api.customer; package cn.iocoder.yudao.module.ecw.api.customer;
import java.util.Date;
public interface CustomerApi { public interface CustomerApi {
void associateCustomerAuto(String areaCode, String phone, Long userId, String newName); void associateCustomerAuto(String areaCode, String phone, Long userId, String newName);
void approvalCustomerDelay(String approveId, Integer result); void approvalCustomerDelay(String approveId, Integer result);
void approvalCustomerTransfer(String approveId, Integer result); void approvalCustomerTransfer(String approveId, Integer result);
void fillFirstDealTimeIfNull(Long customerId, Date firstDealTime);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment