客户类型枚举类定义

master
shijie 4 years ago
parent b3512f716a
commit 24a74e331d
  1. 2
      dq-framework-model/src/main/java/com/daqing/framework/domain/crms/CustomerEntity.java
  2. 37
      dq-framework-model/src/main/java/com/daqing/framework/domain/crms/ext/CrmsConstant.java
  3. 33
      dq-framework-model/src/main/java/com/daqing/framework/domain/crms/request/CustomerRequest.java

@ -29,7 +29,7 @@ public class CustomerEntity implements Serializable {
*/ */
private String code; private String code;
/** /**
* 客户类型 * 客户类型1企业类型0个人类型
*/ */
private Integer type; private Integer type;
/** /**

@ -0,0 +1,37 @@
package com.daqing.framework.domain.crms.ext;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
public class CrmsConstant {
/**
* 客户类型1企业类型0个人类型
*/
@AllArgsConstructor
public enum customerType {
/**
* 个人类型
*/
PONSONAL_CUSTOMER(0, "个人类型"),
/**
* 企业类型
*/
COMPANY_CUSTOMER(1, "企业类型");
/**
* 类型代号
*/
@Setter
@Getter
private Integer type;
/**
* 类型名称
*/
@Setter
@Getter
private String typeName;
}
}

@ -0,0 +1,33 @@
package com.daqing.framework.domain.crms.request;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 记录客户基本信息
*
* @author gongsj
* @email gongsj@gmail.com
* @date 2020-09-08 11:23:28
*/
@Data
public class CustomerRequest implements Serializable {
/**
* 创建时间
*/
private Integer createTime;
/**
* 起始时间
*/
private String startTime;
/**
* 结束时间
*/
private String endTime;
}
Loading…
Cancel
Save