Commit 5b7d012a authored by Smile's avatar Smile Committed by wux

feat:控货收货人自动创建客户需求变动

parent 4060f142
......@@ -122,9 +122,12 @@ public class CustomerApiImpl implements CustomerApi {
//注册会员是公司资源
customerCreateReqVO.setResourceType(2);
//线索客户
customerCreateReqVO.setStatus(CustomerStatusEnum.CLUE.getValue());
//业绩类型为老客户
customerCreateReqVO.setIsNew(false);
//设置手挡时间为当前时间
customerCreateReqVO.setFirstDealTime(new Date());
//成交客户
customerCreateReqVO.setStatus(CustomerStatusEnum.DEAL.getValue());
//更新 状态更新时间
customerCreateReqVO.setStatusUpdateTime(new Date());
//注册时自动创建
......
......@@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.customer.vo.customer.vo;
import cn.iocoder.yudao.module.customer.vo.customer.customerContacts.CustomerContactsCreateReqVO;
import cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineCreateReqVO;
import cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankCreateReqVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
......@@ -15,6 +16,9 @@ import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;
@ApiModel("管理后台 - 客户创建 Request VO")
@Data
......@@ -240,5 +244,10 @@ public class CustomerCreateReqVO extends CustomerBaseVO {
*/
private Boolean isPotential = false;
@ApiModelProperty(value = "首次成交时间")
@JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND,
timezone = TIME_ZONE_DEFAULT)
private Date firstDealTime;
}
......@@ -45,7 +45,7 @@
<result column="enquiry_info" jdbcType="VARCHAR" property="enquiryInfo"/>
<result column="is_in_open_sea" jdbcType="INTEGER" property="isInOpenSea"/>
<result column="enter_open_sea_time" jdbcType="DATE" property="enterOpenSeaTime"/>
<result column="estimate_enter_open_sea_time" jdbcType="DATE" property="estimateEnterOpenSeaTime"/>
<result column="estimate_enter_open_sea_time" jdbcType="TIMESTAMP" property="estimateEnterOpenSeaTime"/>
<result column="catch_time" jdbcType="DATE" property="catchTime"/>
<result column="is_show_tidan_price" jdbcType="INTEGER" property="isShowTidanPrice"/>
<result column="vip_level_score" jdbcType="BIGINT" property="vipLevelScore"/>
......@@ -64,7 +64,7 @@
<result column="is_potential" jdbcType="INTEGER" property="isPotential"/>
<result column="default_pay" jdbcType="BIT" property="defaultPay"/>
<result column="no_consignee" jdbcType="BIT" property="noConsignee"/>
<result column="first_deal_time" jdbcType="DATE" property="firstDealTime"/>
<result column="first_deal_time" jdbcType="TIMESTAMP" property="firstDealTime"/>
<result column="get_method" jdbcType="INTEGER" property="getMethod"/>
<result column="create_from" jdbcType="INTEGER" property="createFrom"/>
<result column="customer_service_confirmed_time" jdbcType="DATE" property="customerServiceConfirmedTime"/>
......
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