Commit 9eea35ec authored by yanghao's avatar yanghao

chore: 客户添加获取方式 和 归属时间的实现

parent a15d5e12
......@@ -64,10 +64,7 @@ import cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankUpdateReqVO;
import cn.iocoder.yudao.module.customer.vo.customerDetail.CustomerOrderBackPageVO;
import cn.iocoder.yudao.module.customer.vo.customerOperateLog.CustomerOperateLogCreateReqVO;
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.CustomerOperateTypeEnum;
import cn.iocoder.yudao.module.ecw.enums.CustomerStatusEnum;
import cn.iocoder.yudao.module.ecw.enums.ErrorCodeConstants;
import cn.iocoder.yudao.module.ecw.enums.*;
import cn.iocoder.yudao.module.ecw.service.country.CountryService;
import cn.iocoder.yudao.module.ecw.service.internalMessage.InternalMessageService;
import cn.iocoder.yudao.module.ecw.service.paramValid.ParamValidatorService;
......@@ -322,6 +319,11 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
// 设置跟进客户经理
customer.setCustomerService(WebFrameworkUtils.getLoginUserId());
// 获取方式:自主创建
customer.setGetMethod(CustomerGetMethodEnum.CREATE.getValue());
// 归属时间:当前时间
customer.setCustomerServiceConfirmedTime(new Date());
boolean isFcl = isFcl(customer);
......@@ -535,6 +537,11 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
if (customerOld.getCustomerServiceAssignedTime() == null) {
customerNew.setCustomerServiceAssignedTime(now);
}
// 获取方式:分配/移交接收
customerNew.setGetMethod(CustomerGetMethodEnum.ASSIGN.getValue());
//老的归属时间为空,就设置归属时间
customerNew.setCustomerServiceConfirmedTime(now);
//设置预计进行公海池时间
//海运整柜 不掉入公海
if (isFcl) {
......
......@@ -788,6 +788,8 @@
a.customer_service = #{customerServiceId},
-- 分配时间
a.customer_service_assigned_time = now(),
-- 获取方式:分配/移交接收
a.get_method = 2,
-- 确认接收置为false
a.is_customer_service_confirmed = 0,
......@@ -867,6 +869,10 @@
a.is_customer_service_confirmed = 1,
-- 分配时间
a.customer_service_assigned_time = now(),
-- 归属时间
a.customer_service_confirmed_time = now(),
-- 获取方式:公海捞取
a.get_method = 3,
-- 设置捞取时间
a.catch_time = now(),
-- 报价单延期次数重置为0
......
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