model.java 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. package <<ym.projectService.packageName>>.api.model;
  2. import java.io.Serial;
  3. import java.io.Serializable;
  4. import java.math.BigDecimal;
  5. import java.time.LocalDateTime;
  6. import com.baomidou.mybatisplus.annotation.FieldFill;
  7. import com.baomidou.mybatisplus.annotation.IdType;
  8. import com.baomidou.mybatisplus.annotation.TableField;
  9. import com.baomidou.mybatisplus.annotation.TableId;
  10. import com.baomidou.mybatisplus.extension.activerecord.Model;
  11. import com.fasterxml.jackson.annotation.JsonFormat;
  12. import io.swagger.v3.oas.annotations.media.Schema;
  13. import lombok.Data;
  14. import lombok.EqualsAndHashCode;
  15. /**
  16. * <<ym:databaseTable.tableTitle>>(<<ym:databaseTable.tableNameUpper>>)表实体类
  17. *
  18. * @author <<ym:author>>
  19. * @since <<ym:since>>
  20. */
  21. @EqualsAndHashCode(callSuper = true)
  22. @Data
  23. public class <<ym:databaseTable.tableNameUpper>> extends Model<<<ym:databaseTable.tableNameUpper>>> implements Serializable {
  24. @Serial
  25. private static final long serialVersionUID = 1L;
  26. <<ym-loop:DatabaseFields>>
  27. /**
  28. * <<fieldTitle>>
  29. */
  30. @Schema(description = "<<fieldTitle>>")
  31. @TableId(type = IdType.AUTO)
  32. private <<ym-if:<<fieldType>>="int">>Integer<</ym-if>><<ym-if:<<fieldType>>="bigint">>Long<</ym-if>><<ym-if:<<fieldType>>="datetime">>LocalDateTime<</ym-if>><<ym-if:<<fieldType>>="bit">>Boolean<</ym-if>><<ym-if:<<fieldType>>="bit">>Boolean<</ym-if>> <<fieldNameUpper>>;
  33. <</ym-loop:DatabaseFields>>
  34. /**
  35. * 新增时间
  36. */
  37. @TableField(fill = FieldFill.INSERT)
  38. @Schema(description = "新增时间")
  39. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  40. private LocalDateTime createTime;
  41. /**
  42. * 更新时间
  43. */
  44. @TableField(fill = FieldFill.UPDATE)
  45. @Schema(description = "更新时间")
  46. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  47. private LocalDateTime updateTime;
  48. /**
  49. * 删除标记,0未删除,1已删除
  50. */
  51. @Schema(description = "删除标记,0未删除,1已删除")
  52. private String delFlag;
  53. /**
  54. * 版本
  55. */
  56. @Schema(description = "版本")
  57. private Integer version;
  58. /**
  59. * 机具码
  60. */
  61. @Schema(description = "机具码")
  62. private String posSn;
  63. /**
  64. * 仓库ID
  65. */
  66. @Schema(description = "仓库ID")
  67. private Integer warehouseId;
  68. /**
  69. * 仓库名称
  70. */
  71. @Schema(description = "仓库名称")
  72. private String warehouseName;
  73. /**
  74. * 所属创客ID
  75. */
  76. @Schema(description = "所属创客ID")
  77. private Integer userId;
  78. /**
  79. * 商户ID
  80. */
  81. @Schema(description = "商户ID")
  82. private Integer merchantId;
  83. /**
  84. * 品牌ID
  85. */
  86. @Schema(description = "品牌ID")
  87. private Integer brandId;
  88. /**
  89. * 循环状态 0不可循环 1可循环
  90. */
  91. @Schema(description = "循环状态 0不可循环 1可循环")
  92. private Integer recycleStatus;
  93. /**
  94. * 循环结束时间
  95. */
  96. @Schema(description = "循环结束时间")
  97. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  98. private LocalDateTime recycleEndTime;
  99. /**
  100. * 机具类型 0兑换机 1循环机
  101. */
  102. @Schema(description = "机具类型 0兑换机 1循环机")
  103. private Integer machineType;
  104. /**
  105. * 机具押金
  106. */
  107. @Schema(description = "机具押金")
  108. private BigDecimal cashPledge;
  109. /**
  110. * 厂家押金
  111. */
  112. @Schema(description = "厂家押金")
  113. private BigDecimal sourcePledge;
  114. /**
  115. * 机具轨迹路径
  116. */
  117. @Schema(description = "机具轨迹路径")
  118. private String allotPath;
  119. /**
  120. * 绑定时间
  121. */
  122. @Schema(description = "绑定时间")
  123. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  124. private LocalDateTime bindTime;
  125. /**
  126. * 激活时间
  127. */
  128. @Schema(description = "激活时间")
  129. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  130. private LocalDateTime actTime;
  131. /**
  132. * 出库时间
  133. */
  134. @Schema(description = "出库时间")
  135. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  136. private LocalDateTime deliveryTime;
  137. /**
  138. * 箱码
  139. */
  140. @Schema(description = "箱码")
  141. private String boxSn;
  142. /**
  143. * 机具费率
  144. */
  145. @Schema(description = "机具费率")
  146. private BigDecimal machineRatio;
  147. /**
  148. * 是否激活 0未激活 1已激活
  149. */
  150. @Schema(description = "是否激活 0未激活 1已激活")
  151. private Integer isAct;
  152. /**
  153. * 绑定状态 0未绑定 1已绑定 2已解绑
  154. */
  155. @Schema(description = "绑定状态 0未绑定 1已绑定 2已解绑")
  156. private Integer bindStatus;
  157. /**
  158. * 状态 -1坏机 0在库 1出库
  159. */
  160. @Schema(description = "状态 -1坏机 0在库 1出库")
  161. private Integer status;
  162. /**
  163. * 回收状态 0正常 1可回收
  164. */
  165. @Schema(description = "回收状态 0正常 1可回收 ")
  166. private Integer returnStatus;
  167. /**
  168. * 是否首台 0否 1是
  169. */
  170. @Schema(description = "是否首台 0否 1是")
  171. private Integer isFirst;
  172. /**
  173. * 费率调升标记
  174. */
  175. @Schema(description = "费率调升标记 0未调 1已调整")
  176. private Integer upFeeFlag;
  177. /**
  178. * 费率调降标记
  179. */
  180. @Schema(description = "费率调升标记 0未调 1已调整")
  181. private Integer downFeeFlag;
  182. /**
  183. * 盟主用户ID
  184. */
  185. @Schema(description = "盟主用户ID")
  186. private Integer leaderId;
  187. /**
  188. * 合伙人用户ID
  189. */
  190. @Schema(description = "合伙人用户ID")
  191. private Integer partnerId;
  192. /**
  193. * 预发到用户的ID
  194. */
  195. @Schema(description = "预发到用户的ID")
  196. private Integer preUserId;
  197. /**
  198. * 补录标识 0未补录 1已补录
  199. */
  200. @Schema(description = "补录标识 0未补录 1已补录")
  201. private Integer isSupply;
  202. /**
  203. * 补激活奖标记 0未补录 1已补录
  204. */
  205. @Schema(description = "补录标识 0未补录 1已补录")
  206. private Integer isOpAct;
  207. /**
  208. * 业务批次号
  209. */
  210. @Schema(description = "业务批次号")
  211. private String batchNo;
  212. /**
  213. * 贷记卡交易额
  214. */
  215. @Schema(description = "贷记卡交易额")
  216. private BigDecimal creditTrade;
  217. /**
  218. * 借记卡交易额
  219. */
  220. @Schema(description = "借记卡交易额")
  221. private BigDecimal debitCardTrade;
  222. /**
  223. * 扫码交易额
  224. */
  225. @Schema(description = "扫码交易额")
  226. private BigDecimal scanQrTrade;
  227. /**
  228. * 溯源机具和兑换券
  229. */
  230. @Schema(description = "溯源机具和兑换券")
  231. private String sourcePosSn;
  232. /**
  233. * 机具地址
  234. */
  235. @Schema(description = "机具地址")
  236. private String devLocation;
  237. /**
  238. * 秒到费
  239. */
  240. @Schema(description = "秒到费")
  241. private BigDecimal secondFee;
  242. }