Outbound.java 8.6 KB

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