AuthorizeCamera.java 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. package com.fdkankan.manage.entity;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import com.baomidou.mybatisplus.annotation.*;
  5. import java.io.Serializable;
  6. import java.math.BigDecimal;
  7. import java.util.Date;
  8. import com.fdkankan.manage.common.CustomDateConverter;
  9. import com.fdkankan.manage.common.DictUtil;
  10. import com.fdkankan.manage.vo.response.OrderVoStatus;
  11. import lombok.Getter;
  12. import lombok.Setter;
  13. /**
  14. * <p>
  15. *
  16. * </p>
  17. *
  18. * @author
  19. * @since 2023-07-07
  20. */
  21. @Getter
  22. @Setter
  23. @TableName("t_authorize_camera")
  24. public class AuthorizeCamera implements Serializable {
  25. private static final long serialVersionUID = 1L;
  26. /**
  27. * 本地算法授权
  28. */
  29. @TableId(value = "id", type = IdType.AUTO)
  30. @ExcelIgnore
  31. private Integer id;
  32. /**
  33. * 客户名称
  34. */
  35. @ExcelProperty(value = "客户名称",index = 6)
  36. @TableField(value = "customer_name",updateStrategy = FieldStrategy.IGNORED)
  37. private String customerName;
  38. /**
  39. * 客户类别0直销,1经销
  40. */
  41. @ExcelProperty(value = "客户类别",index = 7,converter = CustomDateConverter.class)
  42. @TableField(value = "customer_type",updateStrategy = FieldStrategy.IGNORED)
  43. private Integer customerType;
  44. /**
  45. * 终端客户
  46. */
  47. @ExcelProperty(value = "终端客户",index = 8)
  48. @TableField(value = "end_customer",updateStrategy = FieldStrategy.IGNORED)
  49. private String endCustomer;
  50. /**
  51. * 使用类型
  52. */
  53. @ExcelProperty(value = "使用类型",index = 9,converter = CustomDateConverter.class)
  54. @TableField("use_type")
  55. private Integer useType;
  56. /**
  57. * 项目号
  58. */
  59. @TableField(value = "project_num",updateStrategy = FieldStrategy.IGNORED)
  60. @ExcelProperty(value = "项目号",index = 17)
  61. private String projectNum;
  62. /**
  63. * 备注
  64. */
  65. @TableField("remark")
  66. @ExcelProperty(value = "备注",index = 18)
  67. private String remark;
  68. /**
  69. * 机器码
  70. */
  71. @TableField("machine_code")
  72. @ExcelIgnore
  73. private String machineCode;
  74. /**
  75. * 机器UUID
  76. */
  77. @TableField("machine_uuid")
  78. @ExcelIgnore
  79. private String machineUuid;
  80. /**
  81. * 相机snCodes
  82. */
  83. @TableField(exist = false)
  84. @ExcelProperty(value = "相机sn",index = 16)
  85. private String snCodes;
  86. /**
  87. * 相机数量
  88. */
  89. @TableField("camera_num")
  90. @ExcelIgnore
  91. private Integer cameraNum;
  92. /**
  93. * 授权key
  94. */
  95. @TableField("authorize_key")
  96. @ExcelIgnore
  97. private String authorizeKey;
  98. /**
  99. * 创建人
  100. */
  101. @TableField("sys_user_id")
  102. @ExcelIgnore
  103. private Long sysUserId;
  104. @TableField(exist = false)
  105. @ExcelIgnore
  106. private String sysUserName;
  107. @TableField("rec_status")
  108. @TableLogic(value = "A",delval = "I")
  109. @ExcelIgnore
  110. private String recStatus;
  111. @TableField("create_time")
  112. @ExcelProperty(value = "下单时间",index = 0)
  113. private String createTime;
  114. @TableField("update_time")
  115. @ExcelIgnore
  116. private Date updateTime;
  117. @TableField(value ="company_name",updateStrategy = FieldStrategy.IGNORED)
  118. @ExcelProperty(value = "合同所属公司",index = 2)
  119. private String companyName;
  120. @TableField(value ="business_dept",updateStrategy = FieldStrategy.IGNORED)
  121. @ExcelProperty(value = "业务部门",index = 3)
  122. private String businessDept;
  123. @TableField(value ="business_name",updateStrategy = FieldStrategy.IGNORED)
  124. @ExcelProperty(value = "业务员",index = 4)
  125. private String businessName;
  126. @TableField(value = "customer_pay_time",updateStrategy = FieldStrategy.IGNORED)
  127. @ExcelProperty(value = "客户付款时间",index = 5)
  128. private String customerPayTime;
  129. @TableField("model_auth_code")
  130. @ExcelProperty(value = "客户机器码",index = 15)
  131. private String modelAuthCode;
  132. @TableField("amount")
  133. @ExcelProperty(value = "订单金额",index = 10)
  134. private BigDecimal amount;
  135. @TableField("currency_symbol")
  136. @ExcelProperty(value = "币种",index = 11)
  137. private String currencySymbol;
  138. @TableField("order_sn")
  139. @ExcelProperty(value = "订单号",index = 1)
  140. private String orderSn;
  141. @TableField(exist = false)
  142. @ExcelIgnore
  143. private String useTypeStr;
  144. @TableField(exist = false)
  145. @ExcelProperty(value = "数量",index = 12)
  146. private Integer count = 1;
  147. @TableField(exist = false)
  148. @ExcelProperty(value = "付款状态",index = 13)
  149. private String payStatus ;
  150. @TableField(exist = false)
  151. @ExcelProperty(value = "充值方式",index = 14)
  152. private String payType ="线下" ;
  153. public String getUseTypeStr() {
  154. return DictUtil.toStringUseType(useType);
  155. }
  156. }