InboundItem.java 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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.util.List;
  19. import java.time.LocalDateTime;
  20. /**
  21. * 入库明细
  22. */
  23. @Data
  24. @AllArgsConstructor
  25. @NoArgsConstructor
  26. @EqualsAndHashCode(callSuper = true)
  27. @Accessors(chain = true)
  28. @ExportTitle("入库明细")
  29. @TableName(value = "t_psi_inbound_item", autoResultMap = true, schema = "dkic_b")
  30. @ApiModel(value="实体类:入库明细", description="表名:t_psi_inbound_item")
  31. public class InboundItem extends PageInfo<InboundItem> implements Serializable {
  32. /*
  33. * 数据库字段
  34. */
  35. /**
  36. * 明细ID
  37. */
  38. @ApiModelProperty(value = "明细ID")
  39. @TableField(typeHandler = UuidTypeHandler.class)
  40. private String itemId;
  41. /**
  42. * 入库ID
  43. */
  44. @Excel(name = "入库ID")
  45. @ApiModelProperty(value = "入库ID")
  46. @TableField(typeHandler = UuidTypeHandler.class)
  47. private String intoId;
  48. /**
  49. * 入库类型 (【系统字典】采购入库、销退入库、其他入库)
  50. */
  51. @Excel(name = "入库类型 (【系统字典】采购入库、销退入库、其他入库)")
  52. @ApiModelProperty(value = "入库类型 (【系统字典】采购入库、销退入库、其他入库)")
  53. private String intoType;
  54. /**
  55. * 来源单ID (采购订单、出库退货)
  56. */
  57. @Excel(name = "来源单ID (采购订单、出库退货)")
  58. @ApiModelProperty(value = "来源单ID (采购订单、出库退货)")
  59. @TableField(typeHandler = UuidTypeHandler.class)
  60. private String fromId;
  61. /**
  62. * 来源单明细ID (采购订单、出库退货)
  63. */
  64. @Excel(name = "来源单明细ID (采购订单、出库退货)")
  65. @ApiModelProperty(value = "来源单明细ID (采购订单、出库退货)")
  66. @TableField(typeHandler = UuidTypeHandler.class)
  67. private String fromItemId;
  68. /**
  69. * 商品顺序
  70. */
  71. @Excel(name = "商品顺序")
  72. @ApiModelProperty(value = "商品顺序")
  73. private Integer itemIndex;
  74. /**
  75. * 商品ID
  76. */
  77. @Excel(name = "商品ID")
  78. @ApiModelProperty(value = "商品ID")
  79. @TableField(typeHandler = UuidTypeHandler.class)
  80. private String skuId;
  81. /**
  82. * 入库价
  83. */
  84. @Excel(name = "入库价")
  85. @ApiModelProperty(value = "入库价")
  86. private BigDecimal priceInto;
  87. /**
  88. * 非标号
  89. */
  90. @Excel(name = "非标号")
  91. @ApiModelProperty(value = "非标号")
  92. private String nonStdCode;
  93. /**
  94. * 入库状态 (【系统字典】)
  95. */
  96. @Excel(name = "入库状态 (【系统字典】)")
  97. @ApiModelProperty(value = "入库状态 (【系统字典】)")
  98. private String intoStatus;
  99. /**
  100. * 入库中数量
  101. */
  102. @Excel(name = "入库中数量")
  103. @ApiModelProperty(value = "入库中数量")
  104. private BigDecimal intoingQty;
  105. /**
  106. * 入库中金额
  107. */
  108. @Excel(name = "入库中金额")
  109. @ApiModelProperty(value = "入库中金额")
  110. private BigDecimal intoingAmt;
  111. /**
  112. * 已入库数量
  113. */
  114. @Excel(name = "已入库数量")
  115. @ApiModelProperty(value = "已入库数量")
  116. private BigDecimal intoQty;
  117. /**
  118. * 已入库金额
  119. */
  120. @Excel(name = "已入库金额")
  121. @ApiModelProperty(value = "已入库金额")
  122. private BigDecimal intoAmt;
  123. /**
  124. * 已入库退货数量
  125. */
  126. @Excel(name = "已入库退货数量")
  127. @ApiModelProperty(value = "已入库退货数量")
  128. private BigDecimal returnQty;
  129. /**
  130. * 已入库退货金额
  131. */
  132. @Excel(name = "已入库退货金额")
  133. @ApiModelProperty(value = "已入库退货金额")
  134. private BigDecimal returnAmt;
  135. /**
  136. * 备注
  137. */
  138. @Excel(name = "备注")
  139. @ApiModelProperty(value = "备注")
  140. private String remarks;
  141. /**
  142. * 库存ID
  143. */
  144. @Excel(name = "库存ID")
  145. @ApiModelProperty(value = "库存ID")
  146. @TableField(typeHandler = UuidTypeHandler.class)
  147. private String invId;
  148. /**
  149. * 入库核对单价
  150. */
  151. @Excel(name = "入库核对单价")
  152. @ApiModelProperty(value = "入库核对单价")
  153. private BigDecimal costPrice;
  154. /**
  155. * 入库核对金额
  156. */
  157. @Excel(name = "入库核对金额")
  158. @ApiModelProperty(value = "入库核对金额")
  159. private BigDecimal costAmt;
  160. /**
  161. * 出库数量
  162. */
  163. @Excel(name = "出库数量")
  164. @ApiModelProperty(value = "出库数量")
  165. private BigDecimal outQty;
  166. /**
  167. * 库存数量 (库存数量=商品数量-出库数量)
  168. */
  169. @Excel(name = "库存数量 (库存数量=商品数量-出库数量)")
  170. @ApiModelProperty(value = "库存数量 (库存数量=商品数量-出库数量)")
  171. private BigDecimal invQty;
  172. /**
  173. * 有效标识 (1:正常 0:停用)
  174. */
  175. @Excel(name = "有效标识 (1:正常 0:停用)")
  176. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  177. private Boolean flgValid;
  178. /**
  179. * 企业ID
  180. */
  181. @Excel(name = "企业ID")
  182. @ApiModelProperty(value = "企业ID")
  183. @TableField(fill = FieldFill.INSERT)
  184. private Integer cpId;
  185. /**
  186. * 创建时间 (触发器自动处理)
  187. */
  188. @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  189. @ApiModelProperty(value = "创建时间 (触发器自动处理)")
  190. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  191. @TableField(typeHandler = TimestampTypeHandler.class)
  192. private LocalDateTime opCreateTime;
  193. /**
  194. * 创建用户 (触发器自动处理)
  195. */
  196. @Excel(name = "创建用户 (触发器自动处理)")
  197. @ApiModelProperty(value = "创建用户 (触发器自动处理)")
  198. @TableField(typeHandler = UuidTypeHandler.class)
  199. private String opCreateUserId;
  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 opUpdateTime;
  208. /**
  209. * 修改用户 (触发器自动处理)
  210. */
  211. @Excel(name = "修改用户 (触发器自动处理)")
  212. @ApiModelProperty(value = "修改用户 (触发器自动处理)")
  213. @TableField(typeHandler = UuidTypeHandler.class)
  214. private String opUpdateUserId;
  215. /**
  216. * 数据操作应用 (触发器自动处理)
  217. */
  218. @Excel(name = "数据操作应用 (触发器自动处理)")
  219. @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
  220. private String opAppCode;
  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 opTimestamp;
  229. /**
  230. * 数据操作数据库用户 (触发器自动处理)
  231. */
  232. @Excel(name = "数据操作数据库用户 (触发器自动处理)")
  233. @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
  234. private String opDbUser;
  235. @Excel(name = "入库仓库")
  236. @TableField(typeHandler = UuidTypeHandler.class)
  237. @ApiModelProperty(value = "入库仓库")
  238. private String whId;
  239. @ApiModelProperty(value = "源入库单ID(采购退货时记录)")
  240. @TableField(typeHandler = UuidTypeHandler.class)
  241. private String sIntoId;
  242. @ApiModelProperty(value = "源入库单明细ID(采购退货时记录)")
  243. @TableField(typeHandler = UuidTypeHandler.class)
  244. private String sIntoItemId;
  245. @ApiModelProperty(value = "源采购订单ID(采购退货时记录)")
  246. @TableField(typeHandler = UuidTypeHandler.class)
  247. private String sPurId;
  248. @ApiModelProperty(value = "源采购明细ID(采购退货时记录)")
  249. @TableField(typeHandler = UuidTypeHandler.class)
  250. private String sPurItemId;
  251. private static final long serialVersionUID = 1L;
  252. }