CusFollow.java 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. package com.dk.mdm.model.pojo.mst;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import com.alibaba.fastjson.JSONArray;
  4. import com.baomidou.mybatisplus.annotation.*;
  5. import java.io.Serializable;
  6. import com.dk.common.infrastructure.annotaiton.ExportTitle;
  7. import com.dk.common.infrastructure.handler.*;
  8. import com.dk.common.model.pojo.PageInfo;
  9. import com.fasterxml.jackson.annotation.JsonFormat;
  10. import lombok.Data;
  11. import lombok.AllArgsConstructor;
  12. import lombok.NoArgsConstructor;
  13. import lombok.EqualsAndHashCode;
  14. import lombok.experimental.Accessors;
  15. import io.swagger.annotations.ApiModel;
  16. import io.swagger.annotations.ApiModelProperty;
  17. import com.alibaba.fastjson.JSONObject;
  18. import java.util.List;
  19. import java.time.LocalDateTime;
  20. /**
  21. * 客户跟进
  22. */
  23. @Data
  24. @AllArgsConstructor
  25. @NoArgsConstructor
  26. @Accessors(chain = true)
  27. @ExportTitle("客户跟进")
  28. @TableName(value = "t_crm_cus_follow", autoResultMap = true, schema = "dkic_b")
  29. @ApiModel(value="实体类:客户跟进", description="表名:t_crm_cus_follow")
  30. public class CusFollow implements Serializable {
  31. /*
  32. * 数据库字段
  33. */
  34. /**
  35. * 跟进ID
  36. */
  37. @ApiModelProperty(value = "跟进ID")
  38. @TableField(typeHandler = UuidTypeHandler.class)
  39. private String followId;
  40. /**
  41. * 客户ID (陌生接待时为null)
  42. */
  43. @Excel(name = "客户ID (陌生接待时为null)")
  44. @ApiModelProperty(value = "客户ID (陌生接待时为null)")
  45. @TableField(typeHandler = UuidTypeHandler.class)
  46. private String cusId;
  47. /**
  48. * 跟进状态 (【系统字典】陌生接待、留资接待(报备)、跟进、邀约、约尺)
  49. */
  50. @Excel(name = "跟进状态 (【系统字典】陌生接待、留资接待(报备)、跟进、邀约、约尺)")
  51. @ApiModelProperty(value = "跟进状态 (【系统字典】陌生接待、留资接待(报备)、跟进、邀约、约尺)")
  52. private String followStatus;
  53. /**
  54. * 跟进部门
  55. */
  56. @Excel(name = "跟进部门")
  57. @ApiModelProperty(value = "跟进部门")
  58. @TableField(typeHandler = UuidTypeHandler.class)
  59. private String followOrg;
  60. /**
  61. * 跟进人
  62. */
  63. @Excel(name = "跟进人")
  64. @ApiModelProperty(value = "跟进人")
  65. @TableField(typeHandler = UuidTypeHandler.class)
  66. private String followStaff;
  67. /**
  68. * 跟进时间
  69. */
  70. @Excel(name = "跟进时间")
  71. @ApiModelProperty(value = "跟进时间")
  72. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  73. @TableField(typeHandler = TimestampTypeHandler.class)
  74. private LocalDateTime followTime;
  75. /**
  76. * 跟进内容
  77. */
  78. @Excel(name = "跟进内容")
  79. @ApiModelProperty(value = "跟进内容")
  80. private String followData;
  81. /**
  82. * 跟进时长 (分钟)
  83. */
  84. @Excel(name = "跟进时长 (分钟)")
  85. @ApiModelProperty(value = "跟进时长 (分钟)")
  86. private Integer followTimeLen;
  87. /**
  88. * 留店时长 (【系统字典】10-20、20-30。。)
  89. */
  90. @Excel(name = "留店时长 (【系统字典】10-20、20-30。。)")
  91. @ApiModelProperty(value = "留店时长 (【系统字典】10-20、20-30。。)")
  92. private String stayTimeLen;
  93. /**
  94. * 客户意向 (【系统字典】)
  95. */
  96. @Excel(name = "客户意向 (【系统字典】)")
  97. @ApiModelProperty(value = "客户意向 (【系统字典】)")
  98. private String intention;
  99. /**
  100. * 邀约结果 (【系统字典】)
  101. */
  102. @Excel(name = "邀约结果 (【系统字典】)")
  103. @ApiModelProperty(value = "邀约结果 (【系统字典】)")
  104. private String inviteResult;
  105. /**
  106. * 邀约时间
  107. */
  108. @Excel(name = "邀约时间")
  109. @ApiModelProperty(value = "邀约时间")
  110. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  111. @TableField(typeHandler = TimestampTypeHandler.class)
  112. private LocalDateTime inviteTime;
  113. /**
  114. * 设计师
  115. */
  116. @Excel(name = "设计师")
  117. @ApiModelProperty(value = "设计师")
  118. @TableField(typeHandler = UuidTypeHandler.class)
  119. private String designStaff;
  120. /**
  121. * 下次跟进计划
  122. */
  123. @Excel(name = "下次跟进计划")
  124. @ApiModelProperty(value = "下次跟进计划")
  125. private String nextFollowPlan;
  126. /**
  127. * 下次跟进时间 (提醒时间)
  128. */
  129. @Excel(name = "下次跟进时间 (提醒时间)")
  130. @ApiModelProperty(value = "下次跟进时间 (提醒时间)")
  131. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  132. @TableField(typeHandler = TimestampTypeHandler.class)
  133. private LocalDateTime nextFollowTime;
  134. /**
  135. * 跟进附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)
  136. */
  137. @Excel(name = "跟进附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  138. @ApiModelProperty(value = "跟进附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  139. @TableField(typeHandler = JsonTypeHandler.class)
  140. private JSONArray annexPaths;
  141. /**
  142. * 量尺状态 (【系统字典】)
  143. */
  144. @Excel(name = "量尺状态 (【系统字典】)")
  145. @ApiModelProperty(value = "量尺状态 (【系统字典】)")
  146. private String measureStatus;
  147. /**
  148. * 备注
  149. */
  150. @Excel(name = "备注")
  151. @ApiModelProperty(value = "备注")
  152. private String remarks;
  153. /**
  154. * 有效标识 (1:正常 0:停用)
  155. */
  156. @Excel(name = "有效标识 (1:正常 0:停用)")
  157. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  158. private Boolean flgValid;
  159. /**
  160. * 企业ID
  161. */
  162. @TableField(fill = FieldFill.INSERT)
  163. @Excel(name = "企业ID")
  164. @ApiModelProperty(value = "企业ID")
  165. private Integer cpId;
  166. /**
  167. * 创建时间 (触发器自动处理)
  168. */
  169. @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  170. @ApiModelProperty(value = "创建时间 (触发器自动处理)")
  171. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  172. @TableField(typeHandler = TimestampTypeHandler.class)
  173. private LocalDateTime opCreateTime;
  174. /**
  175. * 创建用户 (触发器自动处理)
  176. */
  177. @Excel(name = "创建用户 (触发器自动处理)")
  178. @ApiModelProperty(value = "创建用户 (触发器自动处理)")
  179. @TableField(typeHandler = UuidTypeHandler.class)
  180. private String opCreateUserId;
  181. /**
  182. * 修改时间 (触发器自动处理)
  183. */
  184. @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  185. @ApiModelProperty(value = "修改时间 (触发器自动处理)")
  186. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  187. @TableField(typeHandler = TimestampTypeHandler.class)
  188. private LocalDateTime opUpdateTime;
  189. /**
  190. * 修改用户 (触发器自动处理)
  191. */
  192. @Excel(name = "修改用户 (触发器自动处理)")
  193. @ApiModelProperty(value = "修改用户 (触发器自动处理)")
  194. @TableField(typeHandler = UuidTypeHandler.class)
  195. private String opUpdateUserId;
  196. /**
  197. * 数据操作应用 (触发器自动处理)
  198. */
  199. @Excel(name = "数据操作应用 (触发器自动处理)")
  200. @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
  201. private String opAppCode;
  202. /**
  203. * 数据时间戳 (触发器自动处理)
  204. */
  205. @Excel(name = "数据时间戳 (触发器自动处理)")
  206. @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
  207. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  208. @TableField(typeHandler = TimestampTypeHandler.class)
  209. private LocalDateTime opTimestamp;
  210. /**
  211. * 数据操作数据库用户 (触发器自动处理)
  212. */
  213. @Excel(name = "数据操作数据库用户 (触发器自动处理)")
  214. @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
  215. private String opDbUser;
  216. /*
  217. * 相关属性
  218. * @TableField(exist = false)
  219. */
  220. /*
  221. * 关联属性 + 查询条件
  222. * @TableField(exist = false)
  223. */
  224. private static final long serialVersionUID = 1L;
  225. }