PurchaseResponse.java 11 KB

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