CheckItem.java 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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 java.math.BigDecimal;
  17. import java.time.LocalDate;
  18. import java.time.LocalDateTime;
  19. /**
  20. * 盘点单明细
  21. */
  22. @Data
  23. @AllArgsConstructor
  24. @NoArgsConstructor
  25. @EqualsAndHashCode(callSuper = true)
  26. @Accessors(chain = true)
  27. @ExportTitle("盘点单明细")
  28. @TableName(value = "t_psi_check_item", autoResultMap = true, schema = "dkic_b")
  29. @ApiModel(value="实体类:盘点单明细", description="表名:t_psi_check_item")
  30. public class CheckItem extends PageInfo<CheckItem> implements Serializable {
  31. /*
  32. * 数据库字段
  33. */
  34. /**
  35. * 明细ID
  36. */
  37. @TableId(value = "item_id", type = IdType.AUTO)
  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 checkId;
  48. /**
  49. * 商品顺序
  50. */
  51. @Excel(name = "商品顺序")
  52. @ApiModelProperty(value = "商品顺序")
  53. private Integer itemIndex;
  54. /**
  55. * 商品ID
  56. */
  57. @Excel(name = "商品ID")
  58. @ApiModelProperty(value = "商品ID")
  59. @TableField(typeHandler = UuidTypeHandler.class)
  60. private String skuId;
  61. @Excel(name = "箱")
  62. @ApiModelProperty(value = "箱")
  63. private Integer box;
  64. @Excel(name = "片")
  65. @ApiModelProperty(value = "片")
  66. private Integer piece;
  67. @Excel(name = "包装")
  68. @ApiModelProperty(value = "包装")
  69. private Integer packBox;
  70. /**
  71. * 基本单位
  72. */
  73. @ApiModelProperty(value = "基本单位")
  74. @TableField(typeHandler = UuidTypeHandler.class)
  75. private String unitId;
  76. /**
  77. * 包装单位
  78. */
  79. @ApiModelProperty(value = "包装单位")
  80. @TableField(typeHandler = UuidTypeHandler.class)
  81. private String subUnitId;
  82. /**
  83. * 库存ID
  84. */
  85. @Excel(name = "库存ID")
  86. @ApiModelProperty(value = "库存ID")
  87. @TableField(typeHandler = UuidTypeHandler.class)
  88. private String invId;
  89. /**
  90. * 库存数量
  91. */
  92. @Excel(name = "库存数量")
  93. @ApiModelProperty(value = "库存数量")
  94. private BigDecimal invQty;
  95. /**
  96. * 盘点数量
  97. */
  98. @Excel(name = "盘点数量")
  99. @ApiModelProperty(value = "盘点数量")
  100. private BigDecimal checkQty;
  101. /**
  102. * 差异数量 (库存数量-出库中数量)
  103. */
  104. @Excel(name = "差异数量 (库存数量-出库中数量)")
  105. @ApiModelProperty(value = "差异数量 (库存数量-出库中数量)")
  106. private BigDecimal balanceQty;
  107. /**
  108. * 责任人 (盘亏需要有责任人)
  109. */
  110. @Excel(name = "责任人 (盘亏需要有责任人)")
  111. @ApiModelProperty(value = "责任人 (盘亏需要有责任人)")
  112. @TableField(typeHandler = UuidTypeHandler.class)
  113. private String staffId;
  114. /**
  115. * 盘亏原因 (【数据字典】)
  116. */
  117. @Excel(name = "盘亏原因 (【数据字典】)")
  118. @ApiModelProperty(value = "盘亏原因 (【数据字典】)")
  119. @TableField(typeHandler = UuidTypeHandler.class)
  120. private String lossReason;
  121. /**
  122. * 盘点日期
  123. */
  124. @Excel(name = "盘点日期")
  125. @ApiModelProperty(value = "盘点日期")
  126. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  127. @TableField(typeHandler = TimestampTypeHandler.class)
  128. private LocalDate checkDate;
  129. /**
  130. * 备注
  131. */
  132. @Excel(name = "备注")
  133. @ApiModelProperty(value = "备注")
  134. private String remarks;
  135. /**
  136. * 有效标识 (1:正常 0:停用)
  137. */
  138. @Excel(name = "有效标识 (1:正常 0:停用)")
  139. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  140. private Boolean flgValid;
  141. /**
  142. * 企业ID
  143. */
  144. @TableField(fill = FieldFill.INSERT)
  145. @Excel(name = "企业ID")
  146. @ApiModelProperty(value = "企业ID")
  147. private Integer cpId;
  148. /**
  149. * 创建时间 (触发器自动处理)
  150. */
  151. @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  152. @ApiModelProperty(value = "创建时间 (触发器自动处理)")
  153. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  154. @TableField(typeHandler = TimestampTypeHandler.class)
  155. private LocalDateTime opCreateTime;
  156. /**
  157. * 创建用户 (触发器自动处理)
  158. */
  159. @Excel(name = "创建用户 (触发器自动处理)")
  160. @ApiModelProperty(value = "创建用户 (触发器自动处理)")
  161. @TableField(typeHandler = UuidTypeHandler.class)
  162. private String opCreateUserId;
  163. /**
  164. * 修改时间 (触发器自动处理)
  165. */
  166. @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  167. @ApiModelProperty(value = "修改时间 (触发器自动处理)")
  168. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  169. @TableField(typeHandler = TimestampTypeHandler.class)
  170. private LocalDateTime opUpdateTime;
  171. /**
  172. * 修改用户 (触发器自动处理)
  173. */
  174. @Excel(name = "修改用户 (触发器自动处理)")
  175. @ApiModelProperty(value = "修改用户 (触发器自动处理)")
  176. @TableField(typeHandler = UuidTypeHandler.class)
  177. private String opUpdateUserId;
  178. /**
  179. * 数据操作应用 (触发器自动处理)
  180. */
  181. @Excel(name = "数据操作应用 (触发器自动处理)")
  182. @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
  183. private String opAppCode;
  184. /**
  185. * 数据时间戳 (触发器自动处理)
  186. */
  187. @Excel(name = "数据时间戳 (触发器自动处理)")
  188. @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
  189. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  190. @TableField(typeHandler = TimestampTypeHandler.class)
  191. private LocalDateTime opTimestamp;
  192. /**
  193. * 数据操作数据库用户 (触发器自动处理)
  194. */
  195. @Excel(name = "数据操作数据库用户 (触发器自动处理)")
  196. @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
  197. private String opDbUser;
  198. /**
  199. * 原库存数量
  200. */
  201. @Excel(name = "原库存数量")
  202. @ApiModelProperty(value = "原库存数量")
  203. private BigDecimal oInvQty;
  204. /**
  205. * 入库价
  206. */
  207. @Excel(name = "入库价")
  208. @ApiModelProperty(value = "入库价")
  209. private BigDecimal priceInto;
  210. /**
  211. * 入库中金额
  212. */
  213. @Excel(name = "入库中金额")
  214. @ApiModelProperty(value = "入库中金额")
  215. private BigDecimal intoingAmt;
  216. /*
  217. * 相关属性
  218. * @TableField(exist = false)
  219. */
  220. /*
  221. * 关联属性 + 查询条件
  222. * @TableField(exist = false)
  223. */
  224. private static final long serialVersionUID = 1L;
  225. }