|
@@ -1,9 +1,14 @@
|
|
|
package com.yonge.cooleshow.biz.dal.wrapper;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
-import com.microsvc.toolkit.common.response.paging.QueryInfo;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.yonge.toolset.base.page.QueryInfo;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
import java.util.Optional;
|
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
@@ -24,13 +29,13 @@ public class SysGoodsPriceWrapper {
|
|
|
@NoArgsConstructor
|
|
|
@AllArgsConstructor
|
|
|
@ApiModel(" SysGoodsPriceQuery-商品价格设置")
|
|
|
- public static class SysGoodsPriceQuery implements QueryInfo {
|
|
|
+ public static class SysGoodsPriceQuery extends QueryInfo {
|
|
|
|
|
|
@ApiModelProperty("当前页")
|
|
|
- private Integer page;
|
|
|
+ private int page;
|
|
|
|
|
|
@ApiModelProperty("分页行数")
|
|
|
- private Integer rows;
|
|
|
+ private int rows;
|
|
|
|
|
|
@ApiModelProperty("关键字匹配")
|
|
|
private String keyword;
|
|
@@ -46,11 +51,43 @@ public class SysGoodsPriceWrapper {
|
|
|
public static SysGoodsPriceQuery from(String json) {
|
|
|
return JSON.parseObject(json, SysGoodsPriceQuery.class);
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
+ @Data
|
|
|
+ @Builder
|
|
|
+ @NoArgsConstructor
|
|
|
+ @AllArgsConstructor
|
|
|
@ApiModel(" SysGoodsPrice-商品价格设置")
|
|
|
public static class SysGoodsPrice {
|
|
|
-
|
|
|
+ @ApiModelProperty("主键ID")
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @ApiModelProperty("商品类型")
|
|
|
+ private String goodsType;
|
|
|
+
|
|
|
+ @ApiModelProperty("销售价")
|
|
|
+ private BigDecimal salePrice;
|
|
|
+
|
|
|
+ @ApiModelProperty("原价")
|
|
|
+ private BigDecimal originalPrice;
|
|
|
+
|
|
|
+ @ApiModelProperty("描述")
|
|
|
+ private String describe;
|
|
|
+
|
|
|
+ @ApiModelProperty("购买周期")
|
|
|
+ private Integer duration;
|
|
|
+
|
|
|
+ @ApiModelProperty("图片")
|
|
|
+ private String goodsImg;
|
|
|
+
|
|
|
+ @ApiModelProperty("更新人")
|
|
|
+ private Long updateBy;
|
|
|
+
|
|
|
+ @ApiModelProperty("更新时间")
|
|
|
+ private Date updateTime;
|
|
|
+
|
|
|
+ @ApiModelProperty("创建时间")
|
|
|
+ private Date createTime;
|
|
|
public String jsonString() {
|
|
|
return JSON.toJSONString(this);
|
|
|
}
|