Purchase.java 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. package com.dk.mdm.model.pojo.pur;
  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_purchase", autoResultMap = true)
  31. @ApiModel(value="实体类:采购订单", description="表名:t_psi_purchase")
  32. public class Purchase extends PageInfo<Purchase> implements Serializable {
  33. /*
  34. * 数据库字段
  35. */
  36. /**
  37. * 采购订单ID
  38. */
  39. @TableId(value = "pur_id", type = IdType.AUTO)
  40. @ApiModelProperty(value = "采购订单ID")
  41. @TableField(typeHandler = UuidTypeHandler.class)
  42. private String purId;
  43. /**
  44. * 采购订单号
  45. */
  46. @Excel(name = "采购订单号")
  47. @ApiModelProperty(value = "采购订单号")
  48. private String purNo;
  49. /**
  50. * 订单类型 (【系统字典】采购订单)
  51. */
  52. @Excel(name = "订单类型 (【系统字典】采购订单)")
  53. @ApiModelProperty(value = "订单类型 (【系统字典】采购订单)")
  54. private String purType;
  55. /**
  56. * 部门
  57. */
  58. @Excel(name = "部门")
  59. @ApiModelProperty(value = "部门")
  60. @TableField(typeHandler = UuidTypeHandler.class)
  61. private String orgId;
  62. /**
  63. * 员工
  64. */
  65. @Excel(name = "员工")
  66. @ApiModelProperty(value = "员工")
  67. @TableField(typeHandler = UuidTypeHandler.class)
  68. private String staffId;
  69. /**
  70. * 供应商
  71. */
  72. @Excel(name = "供应商")
  73. @ApiModelProperty(value = "供应商")
  74. @TableField(typeHandler = UuidTypeHandler.class)
  75. private String supId;
  76. /**
  77. * 联系人
  78. */
  79. @Excel(name = "联系人")
  80. @ApiModelProperty(value = "联系人")
  81. private String contactName;
  82. /**
  83. * 联系电话
  84. */
  85. @Excel(name = "联系电话")
  86. @ApiModelProperty(value = "联系电话")
  87. private String contactPhone;
  88. /**
  89. * 取货日期
  90. */
  91. @Excel(name = "取货日期")
  92. @ApiModelProperty(value = "取货日期")
  93. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  94. @TableField(typeHandler = TimestampTypeHandler.class)
  95. private LocalDate pickupDate;
  96. /**
  97. * 商品总数量
  98. */
  99. @Excel(name = "商品总数量")
  100. @ApiModelProperty(value = "商品总数量")
  101. private BigDecimal sumQuantity;
  102. /**
  103. * 标价合计
  104. */
  105. @Excel(name = "标价合计")
  106. @ApiModelProperty(value = "标价合计")
  107. private BigDecimal sumStandard;
  108. /**
  109. * 合计金额
  110. */
  111. @Excel(name = "合计金额")
  112. @ApiModelProperty(value = "合计金额")
  113. private BigDecimal sumAmount;
  114. /**
  115. * 采购折扣 (合计金额/标价合计)
  116. */
  117. @Excel(name = "采购折扣 (合计金额/标价合计)")
  118. @ApiModelProperty(value = "采购折扣 (合计金额/标价合计)")
  119. private BigDecimal purDiscount;
  120. /**
  121. * 订单状态 (【系统字典】)
  122. */
  123. @Excel(name = "订单状态 (【系统字典】)")
  124. @ApiModelProperty(value = "订单状态 (【系统字典】)")
  125. private String purStatus;
  126. /**
  127. * 入库状态 (【系统字典】)
  128. */
  129. @Excel(name = "入库状态 (【系统字典】)")
  130. @ApiModelProperty(value = "入库状态 (【系统字典】)")
  131. private String intoStatus;
  132. /**
  133. * 入库中数量
  134. */
  135. @Excel(name = "入库中数量")
  136. @ApiModelProperty(value = "入库中数量")
  137. private BigDecimal intoingQty;
  138. /**
  139. * 入库中金额
  140. */
  141. @Excel(name = "入库中金额")
  142. @ApiModelProperty(value = "入库中金额")
  143. private BigDecimal intoingAmt;
  144. /**
  145. * 已入库数量
  146. */
  147. @Excel(name = "已入库数量")
  148. @ApiModelProperty(value = "已入库数量")
  149. private BigDecimal intoQty;
  150. /**
  151. * 已入库金额
  152. */
  153. @Excel(name = "已入库金额")
  154. @ApiModelProperty(value = "已入库金额")
  155. private BigDecimal intoAmt;
  156. /**
  157. * 已入库退货数量
  158. */
  159. @Excel(name = "已入库退货数量")
  160. @ApiModelProperty(value = "已入库退货数量")
  161. private BigDecimal returnQty;
  162. /**
  163. * 已入库退货金额
  164. */
  165. @Excel(name = "已入库退货金额")
  166. @ApiModelProperty(value = "已入库退货金额")
  167. private BigDecimal returnAmt;
  168. /**
  169. * 应付金额
  170. */
  171. @Excel(name = "应付金额")
  172. @ApiModelProperty(value = "应付金额")
  173. private BigDecimal amtPayable;
  174. /**
  175. * 还款金额
  176. */
  177. @Excel(name = "还款金额")
  178. @ApiModelProperty(value = "还款金额")
  179. private BigDecimal amtHandle;
  180. /**
  181. * 剩余应付
  182. */
  183. @Excel(name = "剩余应付")
  184. @ApiModelProperty(value = "剩余应付")
  185. private BigDecimal amtResidue;
  186. /**
  187. * 备注
  188. */
  189. @Excel(name = "备注")
  190. @ApiModelProperty(value = "备注")
  191. private String remarks;
  192. /**
  193. * 附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)
  194. */
  195. @Excel(name = "附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  196. @ApiModelProperty(value = "附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  197. @TableField(typeHandler = JsonTypeHandler.class)
  198. private JSONObject annexPaths;
  199. /**
  200. * 制单员
  201. */
  202. @Excel(name = "制单员")
  203. @ApiModelProperty(value = "制单员")
  204. @TableField(typeHandler = UuidTypeHandler.class)
  205. private String makeStaff;
  206. /**
  207. * 制单时间
  208. */
  209. @Excel(name = "制单时间")
  210. @ApiModelProperty(value = "制单时间")
  211. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  212. @TableField(typeHandler = TimestampTypeHandler.class)
  213. private LocalDateTime makeTime;
  214. /**
  215. * 有效标识 (1:正常 0:停用)
  216. */
  217. @Excel(name = "有效标识 (1:正常 0:停用)")
  218. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  219. private Boolean flgValid;
  220. /**
  221. * 企业ID
  222. */
  223. @Excel(name = "企业ID")
  224. @ApiModelProperty(value = "企业ID")
  225. private Integer cpId;
  226. /**
  227. * 创建时间 (触发器自动处理)
  228. */
  229. @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  230. @ApiModelProperty(value = "创建时间 (触发器自动处理)")
  231. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  232. @TableField(typeHandler = TimestampTypeHandler.class)
  233. private LocalDateTime opCreateTime;
  234. /**
  235. * 创建用户 (触发器自动处理)
  236. */
  237. @Excel(name = "创建用户 (触发器自动处理)")
  238. @ApiModelProperty(value = "创建用户 (触发器自动处理)")
  239. @TableField(typeHandler = UuidTypeHandler.class)
  240. private String opCreateUserId;
  241. /**
  242. * 修改时间 (触发器自动处理)
  243. */
  244. @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  245. @ApiModelProperty(value = "修改时间 (触发器自动处理)")
  246. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  247. @TableField(typeHandler = TimestampTypeHandler.class)
  248. private LocalDateTime opUpdateTime;
  249. /**
  250. * 修改用户 (触发器自动处理)
  251. */
  252. @Excel(name = "修改用户 (触发器自动处理)")
  253. @ApiModelProperty(value = "修改用户 (触发器自动处理)")
  254. @TableField(typeHandler = UuidTypeHandler.class)
  255. private String opUpdateUserId;
  256. /**
  257. * 数据操作应用 (触发器自动处理)
  258. */
  259. @Excel(name = "数据操作应用 (触发器自动处理)")
  260. @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
  261. private String opAppCode;
  262. /**
  263. * 数据时间戳 (触发器自动处理)
  264. */
  265. @Excel(name = "数据时间戳 (触发器自动处理)")
  266. @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
  267. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  268. @TableField(typeHandler = TimestampTypeHandler.class)
  269. private LocalDateTime opTimestamp;
  270. /**
  271. * 数据操作数据库用户 (触发器自动处理)
  272. */
  273. @Excel(name = "数据操作数据库用户 (触发器自动处理)")
  274. @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
  275. private String opDbUser;
  276. /**
  277. * 仓库
  278. */
  279. @Excel(name = "仓库")
  280. @ApiModelProperty(value = "仓库ID")
  281. @TableField(typeHandler = UuidTypeHandler.class)
  282. private String whId;
  283. /*
  284. * 相关属性
  285. * @TableField(exist = false)
  286. */
  287. /*
  288. * 关联属性 + 查询条件
  289. * @TableField(exist = false)
  290. */
  291. private static final long serialVersionUID = 1L;
  292. }