OutboundQuery.java 10 KB

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