GoodsSku.java 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. package com.dk.mdm.model.pojo.mst;
  2. import cn.afterturn.easypoi.excel.annotation.Excel;
  3. import com.alibaba.fastjson.JSONArray;
  4. import com.baomidou.mybatisplus.annotation.*;
  5. import java.io.Serializable;
  6. import com.dk.common.infrastructure.annotaiton.ExportTitle;
  7. import com.dk.common.infrastructure.handler.*;
  8. import com.dk.common.model.pojo.PageInfo;
  9. import com.fasterxml.jackson.annotation.JsonFormat;
  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_mst_goods_sku", autoResultMap = true ,schema = "dkic_b")
  31. @ApiModel(value="实体类:商品档案", description="表名:t_mst_goods_sku")
  32. public class GoodsSku extends PageInfo<GoodsSku> implements Serializable {
  33. /*
  34. * 数据库字段
  35. */
  36. /**
  37. * 商品ID
  38. */
  39. // @TableId(value = "sku_id", type = IdType.AUTO)
  40. @ApiModelProperty(value = "商品ID")
  41. @TableField(typeHandler = UuidTypeHandler.class)
  42. private String skuId;
  43. /**
  44. * 商品编号
  45. */
  46. @Excel(name = "商品编号")
  47. @ApiModelProperty(value = "商品编号")
  48. private String skuCode;
  49. /**
  50. * 商品名称
  51. */
  52. @Excel(name = "商品名称")
  53. @ApiModelProperty(value = "商品名称")
  54. private String skuName;
  55. /**
  56. * 商品型号
  57. */
  58. @Excel(name = "商品型号")
  59. @ApiModelProperty(value = "商品型号")
  60. private String skuModel;
  61. /**
  62. * 商品品牌
  63. */
  64. @Excel(name = "商品品牌")
  65. @ApiModelProperty(value = "商品品牌")
  66. @TableField(typeHandler = UuidTypeHandler.class)
  67. private String brandId;
  68. /**
  69. * 商品种类
  70. */
  71. @Excel(name = "商品种类")
  72. @ApiModelProperty(value = "商品种类")
  73. @TableField(typeHandler = UuidTypeHandler.class)
  74. private String categoryId;
  75. /**
  76. * 计量单位
  77. */
  78. @Excel(name = "计量单位")
  79. @ApiModelProperty(value = "计量单位")
  80. @TableField(typeHandler = UuidTypeHandler.class)
  81. private String unitId;
  82. /**
  83. * 辅助单位
  84. */
  85. @Excel(name = "辅助单位")
  86. @ApiModelProperty(value = "辅助单位")
  87. @TableField(typeHandler = UuidTypeHandler.class)
  88. private String subUnitId;
  89. /**
  90. * 单位换算
  91. */
  92. @Excel(name = "单位换算")
  93. @ApiModelProperty(value = "单位换算")
  94. private BigDecimal conversionFactor;
  95. /**
  96. * 商品系列
  97. */
  98. @Excel(name = "商品系列")
  99. @ApiModelProperty(value = "商品系列")
  100. @TableField(typeHandler = UuidTypeHandler.class)
  101. private String seriesId;
  102. /**
  103. * 商品规格
  104. */
  105. @Excel(name = "商品规格")
  106. @ApiModelProperty(value = "商品规格")
  107. private String skuSpec;
  108. /**
  109. * 采购价
  110. */
  111. @Excel(name = "采购价")
  112. @ApiModelProperty(value = "采购价")
  113. private BigDecimal pricePurchase;
  114. /**
  115. * 零售价
  116. */
  117. @Excel(name = "零售价")
  118. @ApiModelProperty(value = "零售价")
  119. private BigDecimal priceStandard;
  120. /**
  121. * 批发价
  122. */
  123. @Excel(name = "批发价")
  124. @ApiModelProperty(value = "批发价")
  125. private BigDecimal priceWholesale;
  126. /**
  127. * 销售限价
  128. */
  129. @Excel(name = "销售限价")
  130. @ApiModelProperty(value = "销售限价")
  131. private BigDecimal priceLimited;
  132. /**
  133. * 其他价
  134. */
  135. @Excel(name = "其他价")
  136. @ApiModelProperty(value = "其他价")
  137. private BigDecimal priceOther;
  138. /**
  139. * 商品图片 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)
  140. */
  141. @Excel(name = "商品图片 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  142. @ApiModelProperty(value = "商品图片 (index(显示顺序)、name(文件名)、path(路径)、type(类型)、time(上传时间)...)")
  143. @TableField(typeHandler = JsonTypeHandler.class)
  144. private JSONArray skuImages;
  145. /**
  146. * 备注
  147. */
  148. @Excel(name = "备注")
  149. @ApiModelProperty(value = "备注")
  150. private String remarks;
  151. /**
  152. * 有效标识 (1:正常 0:停用)
  153. */
  154. @Excel(name = "有效标识 (1:正常 0:停用)")
  155. @ApiModelProperty(value = "有效标识 (1:正常 0:停用)")
  156. private Boolean flgValid;
  157. /**
  158. * 企业ID
  159. */
  160. @Excel(name = "企业ID")
  161. @ApiModelProperty(value = "企业ID")
  162. @TableField(fill = FieldFill.INSERT)
  163. private Integer cpId;
  164. /**
  165. * 创建时间 (触发器自动处理)
  166. */
  167. @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  168. @ApiModelProperty(value = "创建时间 (触发器自动处理)")
  169. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  170. @TableField(typeHandler = TimestampTypeHandler.class)
  171. private LocalDateTime opCreateTime;
  172. /**
  173. * 创建用户 (触发器自动处理)
  174. */
  175. @Excel(name = "创建用户 (触发器自动处理)")
  176. @ApiModelProperty(value = "创建用户 (触发器自动处理)")
  177. @TableField(typeHandler = UuidTypeHandler.class)
  178. private String opCreateUserId;
  179. /**
  180. * 修改时间 (触发器自动处理)
  181. */
  182. @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
  183. @ApiModelProperty(value = "修改时间 (触发器自动处理)")
  184. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  185. @TableField(typeHandler = TimestampTypeHandler.class)
  186. private LocalDateTime opUpdateTime;
  187. /**
  188. * 修改用户 (触发器自动处理)
  189. */
  190. @Excel(name = "修改用户 (触发器自动处理)")
  191. @ApiModelProperty(value = "修改用户 (触发器自动处理)")
  192. @TableField(typeHandler = UuidTypeHandler.class)
  193. private String opUpdateUserId;
  194. /**
  195. * 数据操作应用 (触发器自动处理)
  196. */
  197. @Excel(name = "数据操作应用 (触发器自动处理)")
  198. @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
  199. private String opAppCode;
  200. /**
  201. * 数据时间戳 (触发器自动处理)
  202. */
  203. @Excel(name = "数据时间戳 (触发器自动处理)")
  204. @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
  205. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  206. @TableField(typeHandler = TimestampTypeHandler.class)
  207. private LocalDateTime opTimestamp;
  208. /**
  209. * 数据操作数据库用户 (触发器自动处理)
  210. */
  211. @Excel(name = "数据操作数据库用户 (触发器自动处理)")
  212. @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
  213. private String opDbUser;
  214. /*
  215. * 相关属性
  216. * @TableField(exist = false)
  217. */
  218. /*
  219. * 关联属性 + 查询条件
  220. * @TableField(exist = false)
  221. */
  222. private static final long serialVersionUID = 1L;
  223. }