ReceiptVO.java 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. package com.dk.mdm.model.vo.mac;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import com.alibaba.fastjson.JSONObject;
  4. import com.baomidou.mybatisplus.annotation.*;
  5. import com.dk.common.infrastructure.annotaiton.ExportTitle;
  6. import com.dk.common.infrastructure.handler.JsonTypeHandler;
  7. import com.dk.common.infrastructure.handler.TimestampTypeHandler;
  8. import com.dk.common.infrastructure.handler.UuidTypeHandler;
  9. import com.dk.common.model.pojo.PageInfo;
  10. import com.fasterxml.jackson.annotation.JsonFormat;
  11. import io.swagger.annotations.ApiModel;
  12. import io.swagger.annotations.ApiModelProperty;
  13. import lombok.AllArgsConstructor;
  14. import lombok.Data;
  15. import lombok.EqualsAndHashCode;
  16. import lombok.NoArgsConstructor;
  17. import lombok.experimental.Accessors;
  18. import java.io.Serializable;
  19. import java.math.BigDecimal;
  20. import java.time.LocalDate;
  21. import java.time.LocalDateTime;
  22. /**
  23. * 收【退】款单
  24. */
  25. @Data
  26. @AllArgsConstructor
  27. @NoArgsConstructor
  28. @EqualsAndHashCode(callSuper = true)
  29. @Accessors(chain = true)
  30. @ExportTitle("收【退】款单")
  31. @TableName(value = "t_mac_receipt", autoResultMap = true)
  32. @ApiModel(value="实体类:收【退】款单", description="表名:t_mac_receipt")
  33. public class ReceiptVO extends PageInfo<ReceiptVO> implements Serializable {
  34. /*
  35. * 数据库字段
  36. */
  37. /**
  38. * 收款单ID
  39. */
  40. // @TableId(value = "receipt_id", type = IdType.AUTO)
  41. @ApiModelProperty(value = "收款单ID")
  42. @TableField(typeHandler = UuidTypeHandler.class)
  43. private String receiptId;
  44. /**
  45. * 收款单号
  46. */
  47. @Excel(name = "收款单号")
  48. @ApiModelProperty(value = "收款单号")
  49. private String receiptNo;
  50. /**
  51. * 收款日期 (账务日期)
  52. */
  53. @Excel(name = "收款日期 (账务日期)")
  54. @ApiModelProperty(value = "收款日期 (账务日期)")
  55. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  56. @TableField(typeHandler = TimestampTypeHandler.class)
  57. private LocalDate receiptDate;
  58. /**
  59. * 收款类型 (【系统字典】收款、退款)
  60. */
  61. @Excel(name = "收款类型 (【系统字典】收款、退款)")
  62. @ApiModelProperty(value = "收款类型 (【系统字典】收款、退款)")
  63. private String receiptType;
  64. /**
  65. * 销售订单ID (订单开单时收的款,记录此id)
  66. */
  67. @Excel(name = "销售订单ID (订单开单时收的款,记录此id)")
  68. @ApiModelProperty(value = "销售订单ID (订单开单时收的款,记录此id)")
  69. @TableField(typeHandler = UuidTypeHandler.class)
  70. private String orderId;
  71. /**
  72. * 客户ID (账务对象)
  73. */
  74. @Excel(name = "客户ID (账务对象)")
  75. @ApiModelProperty(value = "客户ID (账务对象)")
  76. @TableField(typeHandler = UuidTypeHandler.class)
  77. private String cusId;
  78. /**
  79. * 部门
  80. */
  81. @Excel(name = "部门")
  82. @ApiModelProperty(value = "部门")
  83. @TableField(typeHandler = UuidTypeHandler.class)
  84. private String orgId;
  85. /**
  86. * 员工
  87. */
  88. @Excel(name = "员工")
  89. @ApiModelProperty(value = "员工")
  90. @TableField(typeHandler = UuidTypeHandler.class)
  91. private String staffId;
  92. /**
  93. * 收款账户
  94. */
  95. @Excel(name = "收款账户")
  96. @ApiModelProperty(value = "收款账户")
  97. @TableField(typeHandler = UuidTypeHandler.class)
  98. private String receiptMac;
  99. /**
  100. * 收款金额
  101. */
  102. @Excel(name = "收款金额")
  103. @ApiModelProperty(value = "收款金额")
  104. private BigDecimal receiptAmt;
  105. /**
  106. * 应收款单
  107. */
  108. @Excel(name = "应收款单")
  109. @ApiModelProperty(value = "应收款单")
  110. @TableField(typeHandler = UuidTypeHandler.class)
  111. private String receivableId;
  112. /**
  113. * 优惠金额
  114. */
  115. @Excel(name = "优惠金额")
  116. @ApiModelProperty(value = "优惠金额")
  117. private BigDecimal waiveAmt;
  118. /**
  119. * 还款金额
  120. */
  121. @Excel(name = "还款金额")
  122. @ApiModelProperty(value = "还款金额")
  123. private BigDecimal handleAmt;
  124. /**
  125. * 剩余金额 (应收金额-优惠金额-还款金额)
  126. */
  127. @Excel(name = "剩余金额 (应收金额-优惠金额-还款金额)")
  128. @ApiModelProperty(value = "剩余金额 (应收金额-优惠金额-还款金额)")
  129. private BigDecimal residueAmt;
  130. /**
  131. * 备注
  132. */
  133. @Excel(name = "备注")
  134. @ApiModelProperty(value = "备注")
  135. private String remarks;
  136. /**
  137. * 附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)
  138. */
  139. @Excel(name = "附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  140. @ApiModelProperty(value = "附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  141. @TableField(typeHandler = JsonTypeHandler.class)
  142. private JSONObject annexPaths;
  143. /**
  144. * 制单员
  145. */
  146. @Excel(name = "制单员")
  147. @ApiModelProperty(value = "制单员")
  148. @TableField(typeHandler = UuidTypeHandler.class)
  149. private String makeStaff;
  150. /**
  151. * 制单时间
  152. */
  153. @Excel(name = "制单时间")
  154. @ApiModelProperty(value = "制单时间")
  155. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  156. @TableField(typeHandler = TimestampTypeHandler.class)
  157. private LocalDateTime makeTime;
  158. /**
  159. * 有效标识 (1:正常 0:停用)
  160. */
  161. @Excel(name = "有效标识 (1:正常 0:停用)")
  162. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  163. private Boolean flgValid;
  164. /**
  165. * 企业ID
  166. */
  167. @TableField(fill = FieldFill.INSERT)
  168. @Excel(name = "企业ID")
  169. @ApiModelProperty(value = "企业ID")
  170. private Integer cpId;
  171. /**
  172. * 创建时间 (触发器自动处理)
  173. */
  174. @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  175. @ApiModelProperty(value = "创建时间 (触发器自动处理)")
  176. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  177. @TableField(typeHandler = TimestampTypeHandler.class)
  178. private LocalDateTime opCreateTime;
  179. /**
  180. * 创建用户 (触发器自动处理)
  181. */
  182. @Excel(name = "创建用户 (触发器自动处理)")
  183. @ApiModelProperty(value = "创建用户 (触发器自动处理)")
  184. @TableField(typeHandler = UuidTypeHandler.class)
  185. private String opCreateUserId;
  186. /**
  187. * 修改时间 (触发器自动处理)
  188. */
  189. @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  190. @ApiModelProperty(value = "修改时间 (触发器自动处理)")
  191. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  192. @TableField(typeHandler = TimestampTypeHandler.class)
  193. private LocalDateTime opUpdateTime;
  194. /**
  195. * 修改用户 (触发器自动处理)
  196. */
  197. @Excel(name = "修改用户 (触发器自动处理)")
  198. @ApiModelProperty(value = "修改用户 (触发器自动处理)")
  199. @TableField(typeHandler = UuidTypeHandler.class)
  200. private String opUpdateUserId;
  201. /**
  202. * 数据操作应用 (触发器自动处理)
  203. */
  204. @Excel(name = "数据操作应用 (触发器自动处理)")
  205. @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
  206. private String opAppCode;
  207. /**
  208. * 数据时间戳 (触发器自动处理)
  209. */
  210. @Excel(name = "数据时间戳 (触发器自动处理)")
  211. @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
  212. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  213. @TableField(typeHandler = TimestampTypeHandler.class)
  214. private LocalDateTime opTimestamp;
  215. /**
  216. * 数据操作数据库用户 (触发器自动处理)
  217. */
  218. @Excel(name = "数据操作数据库用户 (触发器自动处理)")
  219. @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
  220. private String opDbUser;
  221. /*
  222. * 相关属性
  223. * @TableField(exist = false)
  224. */
  225. /*
  226. * 关联属性 + 查询条件
  227. * @TableField(exist = false)
  228. */
  229. private static final long serialVersionUID = 1L;
  230. }