InboundItem.java 9.4 KB

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