PurchaseVO.java 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. package com.dk.mdm.model.vo.pur;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import com.alibaba.fastjson.JSONArray;
  4. import com.alibaba.fastjson.JSONObject;
  5. import com.baomidou.mybatisplus.annotation.IdType;
  6. import com.baomidou.mybatisplus.annotation.TableField;
  7. import com.baomidou.mybatisplus.annotation.TableId;
  8. import com.baomidou.mybatisplus.annotation.TableName;
  9. import com.dk.common.infrastructure.annotaiton.ExportTitle;
  10. import com.dk.common.infrastructure.handler.*;
  11. import com.dk.common.model.pojo.PageInfo;
  12. import com.dk.common.model.vo.AnnexVO;
  13. import com.dk.mdm.model.response.pur.PurchaseItemResponse;
  14. import com.fasterxml.jackson.annotation.JsonFormat;
  15. import io.swagger.annotations.ApiModel;
  16. import io.swagger.annotations.ApiModelProperty;
  17. import lombok.AllArgsConstructor;
  18. import lombok.Data;
  19. import lombok.EqualsAndHashCode;
  20. import lombok.NoArgsConstructor;
  21. import lombok.experimental.Accessors;
  22. import java.io.Serializable;
  23. import java.math.BigDecimal;
  24. import java.time.LocalDate;
  25. import java.time.LocalDateTime;
  26. import java.util.List;
  27. /**
  28. * 采购订单
  29. */
  30. @Data
  31. @AllArgsConstructor
  32. @NoArgsConstructor
  33. @EqualsAndHashCode(callSuper = true)
  34. @Accessors(chain = true)
  35. @ExportTitle("采购订单")
  36. @TableName(value = "t_psi_purchase", autoResultMap = true)
  37. @ApiModel(value="实体类:采购订单", description="表名:t_psi_purchase")
  38. public class PurchaseVO extends PageInfo<PurchaseVO> implements Serializable {
  39. /*
  40. * 数据库字段
  41. */
  42. /**
  43. * 采购订单ID
  44. */
  45. //@TableId(value = "pur_id", type = IdType.AUTO)
  46. @ApiModelProperty(value = "采购订单ID")
  47. @TableField(typeHandler = UuidTypeHandler.class)
  48. private String purId;
  49. /**
  50. * 采购订单号
  51. */
  52. @Excel(name = "采购订单号")
  53. @ApiModelProperty(value = "采购订单号")
  54. private String purNo;
  55. /**
  56. * 订单类型 (【系统字典】采购订单)
  57. */
  58. @Excel(name = "订单类型 (【系统字典】采购订单)")
  59. @ApiModelProperty(value = "订单类型 (【系统字典】采购订单)")
  60. private String purType;
  61. /**
  62. * 部门
  63. */
  64. @Excel(name = "部门")
  65. @ApiModelProperty(value = "部门")
  66. @TableField(typeHandler = UuidTypeHandler.class)
  67. private String orgId;
  68. /**
  69. * 员工
  70. */
  71. @Excel(name = "员工")
  72. @ApiModelProperty(value = "员工")
  73. @TableField(typeHandler = UuidTypeHandler.class)
  74. private String staffId;
  75. /**
  76. * 供应商
  77. */
  78. @Excel(name = "供应商")
  79. @ApiModelProperty(value = "供应商")
  80. @TableField(typeHandler = UuidTypeHandler.class)
  81. private String supId;
  82. /**
  83. * 联系人
  84. */
  85. @Excel(name = "联系人")
  86. @ApiModelProperty(value = "联系人")
  87. private String contactName;
  88. /**
  89. * 联系电话
  90. */
  91. @Excel(name = "联系电话")
  92. @ApiModelProperty(value = "联系电话")
  93. private String contactPhone;
  94. /**
  95. * 取货日期
  96. */
  97. @Excel(name = "取货日期")
  98. @ApiModelProperty(value = "取货日期")
  99. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  100. @TableField(typeHandler = TimestampTypeHandler.class)
  101. private LocalDate pickupDate;
  102. /**
  103. * 商品总数量
  104. */
  105. @Excel(name = "商品总数量")
  106. @ApiModelProperty(value = "商品总数量")
  107. private BigDecimal sumQuantity;
  108. /**
  109. * 标价合计
  110. */
  111. @Excel(name = "标价合计")
  112. @ApiModelProperty(value = "标价合计")
  113. private BigDecimal sumStandard;
  114. /**
  115. * 合计金额
  116. */
  117. @Excel(name = "合计金额")
  118. @ApiModelProperty(value = "合计金额")
  119. private BigDecimal sumAmount;
  120. /**
  121. * 采购折扣 (合计金额/标价合计)
  122. */
  123. @Excel(name = "采购折扣 (合计金额/标价合计)")
  124. @ApiModelProperty(value = "采购折扣 (合计金额/标价合计)")
  125. private BigDecimal purDiscount;
  126. /**
  127. * 订单状态 (【系统字典】)
  128. */
  129. @Excel(name = "订单状态 (【系统字典】)")
  130. @ApiModelProperty(value = "订单状态 (【系统字典】)")
  131. private String purStatus;
  132. @ApiModelProperty(value = "来源单id")
  133. @TableField(typeHandler = UuidListTypeHandler.class)
  134. private List<String> fromIds;
  135. /**
  136. *来源单号
  137. */
  138. @TableField(typeHandler = StringListTypeHandler.class)
  139. @ApiModelProperty(value = "来源单号")
  140. private List<String> fromNos;
  141. /**
  142. * 入库状态 (【系统字典】)
  143. */
  144. @Excel(name = "入库状态 (【系统字典】)")
  145. @ApiModelProperty(value = "入库状态 (【系统字典】)")
  146. private String intoStatus;
  147. /**
  148. * 入库中数量
  149. */
  150. @Excel(name = "入库中数量")
  151. @ApiModelProperty(value = "入库中数量")
  152. private BigDecimal intoingQty;
  153. /**
  154. * 入库中金额
  155. */
  156. @Excel(name = "入库中金额")
  157. @ApiModelProperty(value = "入库中金额")
  158. private BigDecimal intoingAmt;
  159. /**
  160. * 已入库数量
  161. */
  162. @Excel(name = "已入库数量")
  163. @ApiModelProperty(value = "已入库数量")
  164. private BigDecimal intoQty;
  165. /**
  166. * 已入库金额
  167. */
  168. @Excel(name = "已入库金额")
  169. @ApiModelProperty(value = "已入库金额")
  170. private BigDecimal intoAmt;
  171. /**
  172. * 已入库退货数量
  173. */
  174. @Excel(name = "已入库退货数量")
  175. @ApiModelProperty(value = "已入库退货数量")
  176. private BigDecimal returnQty;
  177. /**
  178. * 已入库退货金额
  179. */
  180. @Excel(name = "已入库退货金额")
  181. @ApiModelProperty(value = "已入库退货金额")
  182. private BigDecimal returnAmt;
  183. /**
  184. * 应付金额
  185. */
  186. @Excel(name = "应付金额")
  187. @ApiModelProperty(value = "应付金额")
  188. private BigDecimal amtPayable;
  189. /**
  190. * 还款金额
  191. */
  192. @Excel(name = "还款金额")
  193. @ApiModelProperty(value = "还款金额")
  194. private BigDecimal amtHandle;
  195. /**
  196. * 剩余应付
  197. */
  198. @Excel(name = "剩余应付")
  199. @ApiModelProperty(value = "剩余应付")
  200. private BigDecimal amtResidue;
  201. /**
  202. * 备注
  203. */
  204. @Excel(name = "备注")
  205. @ApiModelProperty(value = "备注")
  206. private String remarks;
  207. /**
  208. * 附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)
  209. */
  210. @Excel(name = "附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  211. @ApiModelProperty(value = "附件 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  212. @TableField(typeHandler = JsonTypeHandler.class)
  213. private List<AnnexVO> annexPaths;
  214. /**
  215. * 制单员
  216. */
  217. @Excel(name = "制单员")
  218. @ApiModelProperty(value = "制单员")
  219. @TableField(typeHandler = UuidTypeHandler.class)
  220. private String makeStaff;
  221. /**
  222. * 制单时间
  223. */
  224. @Excel(name = "制单时间")
  225. @ApiModelProperty(value = "制单时间")
  226. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  227. @TableField(typeHandler = TimestampTypeHandler.class)
  228. private LocalDateTime makeTime;
  229. /**
  230. * 有效标识 (1:正常 0:停用)
  231. */
  232. @Excel(name = "有效标识 (1:正常 0:停用)")
  233. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  234. private Boolean flgValid;
  235. /**
  236. * 企业ID
  237. */
  238. @Excel(name = "企业ID")
  239. @ApiModelProperty(value = "企业ID")
  240. private Integer cpId;
  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 opCreateTime;
  249. /**
  250. * 创建用户 (触发器自动处理)
  251. */
  252. @Excel(name = "创建用户 (触发器自动处理)")
  253. @ApiModelProperty(value = "创建用户 (触发器自动处理)")
  254. @TableField(typeHandler = UuidTypeHandler.class)
  255. private String opCreateUserId;
  256. /**
  257. * 修改时间 (触发器自动处理)
  258. */
  259. @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  260. @ApiModelProperty(value = "修改时间 (触发器自动处理)")
  261. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  262. @TableField(typeHandler = TimestampTypeHandler.class)
  263. private LocalDateTime opUpdateTime;
  264. /**
  265. * 修改用户 (触发器自动处理)
  266. */
  267. @Excel(name = "修改用户 (触发器自动处理)")
  268. @ApiModelProperty(value = "修改用户 (触发器自动处理)")
  269. @TableField(typeHandler = UuidTypeHandler.class)
  270. private String opUpdateUserId;
  271. /**
  272. * 数据操作应用 (触发器自动处理)
  273. */
  274. @Excel(name = "数据操作应用 (触发器自动处理)")
  275. @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
  276. private String opAppCode;
  277. /**
  278. * 数据时间戳 (触发器自动处理)
  279. */
  280. @Excel(name = "数据时间戳 (触发器自动处理)")
  281. @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
  282. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  283. @TableField(typeHandler = TimestampTypeHandler.class)
  284. private LocalDateTime opTimestamp;
  285. /**
  286. * 数据操作数据库用户 (触发器自动处理)
  287. */
  288. @Excel(name = "数据操作数据库用户 (触发器自动处理)")
  289. @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
  290. private String opDbUser;
  291. /**
  292. * 仓库
  293. */
  294. @Excel(name = "仓库")
  295. @ApiModelProperty(value = "仓库ID")
  296. @TableField(typeHandler = UuidTypeHandler.class)
  297. private String whId;
  298. @ApiModelProperty(value = "采购订单明细")
  299. private List<PurchaseItemVO> purchaseItemVOList;
  300. @ApiModelProperty(value = "删除采购订单明细")
  301. private List<PurchaseItemVO> deletePurchaseItemList;
  302. @ApiModelProperty(value = "修改采购订单明细")
  303. private List<PurchaseItemVO> editPurchaseItemList;
  304. @ApiModelProperty(value = "自动办理标识")
  305. private Boolean flgAutoHandle;
  306. @ApiModelProperty(value = "开单并入库办理标识")
  307. private Boolean inboundProcessingFlag;
  308. @ApiModelProperty(value = "修改采购总单的合金金额和采购明细的入库单价和入库金额标识;true:改,false:不改")
  309. private Boolean updatePurchaseOrderFlag;
  310. /*
  311. * 相关属性
  312. * @TableField(exist = false)
  313. */
  314. /*
  315. * 关联属性 + 查询条件
  316. * @TableField(exist = false)
  317. */
  318. private static final long serialVersionUID = 1L;
  319. }