CustomerResponse.java 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. package com.dk.mdm.model.response.mst;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import com.alibaba.fastjson.JSONObject;
  4. import com.baomidou.mybatisplus.annotation.IdType;
  5. import com.baomidou.mybatisplus.annotation.TableField;
  6. import com.baomidou.mybatisplus.annotation.TableId;
  7. import com.baomidou.mybatisplus.annotation.TableName;
  8. import com.dk.common.infrastructure.annotaiton.ExportTitle;
  9. import com.dk.common.infrastructure.handler.JsonTypeHandler;
  10. import com.dk.common.infrastructure.handler.TimestampTypeHandler;
  11. import com.dk.common.infrastructure.handler.UuidListTypeHandler;
  12. import com.dk.common.infrastructure.handler.UuidTypeHandler;
  13. import com.dk.common.model.pojo.PageInfo;
  14. import com.fasterxml.jackson.annotation.JsonFormat;
  15. import io.swagger.annotations.ApiModel;
  16. import io.swagger.annotations.ApiModelProperty;
  17. import lombok.AllArgsConstructor;
  18. import lombok.Data;
  19. import lombok.EqualsAndHashCode;
  20. import lombok.NoArgsConstructor;
  21. import lombok.experimental.Accessors;
  22. import java.io.Serializable;
  23. import java.math.BigDecimal;
  24. import java.time.LocalDateTime;
  25. import java.util.List;
  26. /**
  27. * 客户资料
  28. */
  29. @Data
  30. @AllArgsConstructor
  31. @NoArgsConstructor
  32. @EqualsAndHashCode(callSuper = true)
  33. @Accessors(chain = true)
  34. @ExportTitle("客户资料")
  35. @TableName(value = "t_mst_customer", autoResultMap = true,schema = "dkic_b")
  36. @ApiModel(value="实体类:客户资料", description="表名:t_mst_customer")
  37. public class CustomerResponse extends PageInfo<CustomerResponse> implements Serializable {
  38. /*
  39. * 数据库字段
  40. */
  41. /**
  42. * 客户ID
  43. */
  44. // @TableId(value = "cus_id", type = IdType.AUTO)
  45. @ApiModelProperty(value = "客户ID")
  46. @TableField(typeHandler = UuidTypeHandler.class)
  47. private String cusId;
  48. /**
  49. * 客户编号
  50. */
  51. @Excel(name = "客户编号")
  52. @ApiModelProperty(value = "客户编号")
  53. private String cusCode;
  54. /**
  55. * 客户名称
  56. */
  57. @Excel(name = "客户名称")
  58. @ApiModelProperty(value = "客户名称")
  59. private String cusName;
  60. /**
  61. * 客户电话
  62. */
  63. @Excel(name = "客户电话")
  64. @ApiModelProperty(value = "客户电话")
  65. private String cusPhone;
  66. /**
  67. * 行政区划 (a1:省 a2:市 a3:区)
  68. */
  69. @Excel(name = "行政区划 (a1:省 a2:市 a3:区)")
  70. @ApiModelProperty(value = "行政区划 (a1:省 a2:市 a3:区)")
  71. @TableField(typeHandler = JsonTypeHandler.class)
  72. private JSONObject addressArea;
  73. /**
  74. * 小区或POI
  75. */
  76. @Excel(name = "小区或POI")
  77. @ApiModelProperty(value = "小区或POI")
  78. private String addressName;
  79. /**
  80. * 门牌号
  81. */
  82. @Excel(name = "门牌号")
  83. @ApiModelProperty(value = "门牌号")
  84. private String addressNo;
  85. /**
  86. * 地址坐标(gcj02) (LAT:纬度的值 LON:经度的值)
  87. */
  88. @Excel(name = "地址坐标(gcj02) (LAT:纬度的值 LON:经度的值)")
  89. @ApiModelProperty(value = "地址坐标(gcj02) (LAT:纬度的值 LON:经度的值)")
  90. @TableField(typeHandler = JsonTypeHandler.class)
  91. private JSONObject addressGcj02;
  92. /**
  93. * 详细地址
  94. */
  95. @Excel(name = "详细地址")
  96. @ApiModelProperty(value = "详细地址")
  97. private String addressFull;
  98. /**
  99. * 联系人
  100. */
  101. @Excel(name = "联系人")
  102. @ApiModelProperty(value = "联系人")
  103. private String contactName;
  104. /**
  105. * 联系电话
  106. */
  107. @Excel(name = "联系电话")
  108. @ApiModelProperty(value = "联系电话")
  109. private String contactPhone;
  110. /**
  111. * 客户来源 (【数据字典】)
  112. */
  113. @Excel(name = "客户来源 (【数据字典】)")
  114. @ApiModelProperty(value = "客户来源 (【数据字典】)")
  115. @TableField(typeHandler = UuidTypeHandler.class)
  116. private String cusFrom;
  117. /**
  118. * 销售渠道
  119. */
  120. @Excel(name = "销售渠道")
  121. @ApiModelProperty(value = "销售渠道")
  122. @TableField(typeHandler = UuidTypeHandler.class)
  123. private String channelId;
  124. /**
  125. * 部门
  126. */
  127. @Excel(name = "部门")
  128. @ApiModelProperty(value = "部门")
  129. @TableField(typeHandler = UuidTypeHandler.class)
  130. private String orgId;
  131. /**
  132. * 业务员
  133. */
  134. @Excel(name = "业务员")
  135. @ApiModelProperty(value = "业务员")
  136. @TableField(typeHandler = UuidTypeHandler.class)
  137. private String staffId;
  138. /**
  139. * 报备人
  140. */
  141. @Excel(name = "报备人")
  142. @ApiModelProperty(value = "报备人")
  143. @TableField(typeHandler = UuidTypeHandler.class)
  144. private String reportStaff;
  145. /**
  146. * 报备时间
  147. */
  148. @Excel(name = "报备时间")
  149. @ApiModelProperty(value = "报备时间")
  150. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  151. @TableField(typeHandler = TimestampTypeHandler.class)
  152. private LocalDateTime reportTime;
  153. /**
  154. * 销售状态 (【系统字典】客销状态:公海、潜客、成交)
  155. */
  156. @Excel(name = "销售状态 (【系统字典】客销状态:公海、潜客、成交)")
  157. @ApiModelProperty(value = "销售状态 (【系统字典】客销状态:公海、潜客、成交)")
  158. private String saleStatus;
  159. /**
  160. * 备注
  161. */
  162. @Excel(name = "备注")
  163. @ApiModelProperty(value = "备注")
  164. private String remarks;
  165. /**
  166. * 当前跟进人
  167. */
  168. @Excel(name = "当前跟进人")
  169. @ApiModelProperty(value = "当前跟进人")
  170. @TableField(typeHandler = UuidListTypeHandler.class)
  171. private List<String> followStaffs;
  172. /**
  173. * 最后跟进人
  174. */
  175. @Excel(name = "最后跟进人")
  176. @ApiModelProperty(value = "最后跟进人")
  177. @TableField(typeHandler = UuidTypeHandler.class)
  178. private String lastFollowStaff;
  179. /**
  180. * 最后跟进ID
  181. */
  182. @Excel(name = "最后跟进ID")
  183. @ApiModelProperty(value = "最后跟进ID")
  184. @TableField(typeHandler = UuidTypeHandler.class)
  185. private String lastFollowId;
  186. /**
  187. * 最后跟进状态 (【系统字典】跟进状态:报备、跟进、邀约、报价、成交)
  188. */
  189. @Excel(name = "最后跟进状态 (【系统字典】跟进状态:报备、跟进、邀约、报价、成交)")
  190. @ApiModelProperty(value = "最后跟进状态 (【系统字典】跟进状态:报备、跟进、邀约、报价、成交)")
  191. private String lastFollowStatus;
  192. /**
  193. * 最后跟进时间
  194. */
  195. @Excel(name = "最后跟进时间")
  196. @ApiModelProperty(value = "最后跟进时间")
  197. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  198. @TableField(typeHandler = TimestampTypeHandler.class)
  199. private LocalDateTime lastFollowTime;
  200. /**
  201. * 跟进次数
  202. */
  203. @Excel(name = "跟进次数")
  204. @ApiModelProperty(value = "跟进次数")
  205. private Integer followCount;
  206. /**
  207. * 有效标识 (1:正常 0:停用)
  208. */
  209. @Excel(name = "有效标识 (1:正常 0:停用)")
  210. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  211. private Boolean flgValid;
  212. /**
  213. * 企业ID
  214. */
  215. @Excel(name = "企业ID")
  216. @ApiModelProperty(value = "企业ID")
  217. private Integer cpId;
  218. @ApiModelProperty(value = "来源名称")
  219. private String cusFromName;
  220. @ApiModelProperty(value = "渠道")
  221. private String channelName;
  222. @ApiModelProperty(value = "部门")
  223. private String orgName;
  224. @ApiModelProperty(value = "员工")
  225. private String staffName;
  226. @ApiModelProperty(value = "报备人")
  227. private String reportStaffName;
  228. @TableField(typeHandler = UuidTypeHandler.class)
  229. private String followStaff;
  230. @ApiModelProperty(value = "跟进人")
  231. private String followStaffName;
  232. @ApiModelProperty(value = "")
  233. private String lastFollowStaffName;
  234. private String saleStatusName;
  235. @ApiModelProperty(value = "提醒日期")
  236. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  237. @TableField(typeHandler = TimestampTypeHandler.class)
  238. private LocalDateTime nextFollowTime;
  239. @ApiModelProperty(value = "总剩余应收 (总应收账款-总应收收款金额-总应收优惠金额)")
  240. private BigDecimal receivableResidue;
  241. @ApiModelProperty(value = "总收款金额-总应收收款金额+总应收优惠金额(现金池)")
  242. private BigDecimal receiptResidue;
  243. @ApiModelProperty(value = "总收款金额")
  244. private BigDecimal receipt;
  245. @ApiModelProperty(value = "总应收账款")
  246. private BigDecimal receivable;
  247. @ApiModelProperty(value = "订单数量")
  248. private BigDecimal orderQuantity;
  249. @ApiModelProperty(value = "订单金额")
  250. private BigDecimal orderAmount;
  251. @ApiModelProperty(value = "出库数量")
  252. private BigDecimal outboundQuantity;
  253. @ApiModelProperty(value = "出库金额")
  254. private BigDecimal outboundAmount;
  255. @ApiModelProperty(value = "未出库金额")
  256. private BigDecimal outboundNotAmount;
  257. @ApiModelProperty(value = "未出库数量")
  258. private BigDecimal outboundNotQuantity;
  259. @ApiModelProperty(value = "退货数量")
  260. private BigDecimal outboundReturnQuantity;
  261. @ApiModelProperty(value = "退货金额")
  262. private BigDecimal outboundReturnAmount;
  263. @ApiModelProperty(value = "初始欠款")
  264. private BigDecimal startAmount;
  265. private static final long serialVersionUID = 1L;
  266. }