|
@@ -4,6 +4,10 @@ import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.gree.mall.manager.annotation.ZfireField;
|
|
|
+import com.gree.mall.manager.enums.CouponCrowdEnum;
|
|
|
+import com.gree.mall.manager.enums.CouponTypeEnum;
|
|
|
+import com.gree.mall.manager.enums.CouponUseTypeEnum;
|
|
|
import com.gree.mall.manager.plus.entity.Coupon;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
@@ -16,54 +20,42 @@ import java.util.Date;
|
|
|
@Data
|
|
|
public class CouponVO {
|
|
|
|
|
|
+
|
|
|
+ @ZfireField(hide = true)
|
|
|
@ApiModelProperty(value = "优惠券id")
|
|
|
- @TableId(value = "coupon_id", type = IdType.ID_WORKER_STR)
|
|
|
private String couponId;
|
|
|
|
|
|
+ @ZfireField(hide = true)
|
|
|
+ @ApiModelProperty(value = "企业微信id")
|
|
|
+ private String companyWechatId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "商户")
|
|
|
+ private String companyName;
|
|
|
+
|
|
|
@ApiModelProperty(value = "优惠券名称")
|
|
|
private String couponName;
|
|
|
|
|
|
- @ApiModelProperty(value = "发放总量")
|
|
|
- private Integer couponAmount;
|
|
|
+ @ApiModelProperty(value = "优惠券性质")
|
|
|
+ private CouponUseTypeEnum type;
|
|
|
|
|
|
- @ApiModelProperty(value = "优惠券图片")
|
|
|
- private String imgSrc;
|
|
|
+ @ApiModelProperty(value = "优惠券类型")
|
|
|
+ private CouponTypeEnum couponType;
|
|
|
|
|
|
- @ApiModelProperty(value = "类型 SATISFY=满减券 DISCOUNT=折扣券 RANDOM=随机金额券 GOODS=商品券")
|
|
|
- private String couponType;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "订单满足金额 0=没门槛")
|
|
|
+ @ApiModelProperty(value = "订单满足金额")
|
|
|
private BigDecimal orderAmount;
|
|
|
|
|
|
- @ApiModelProperty(value = "用券时间类型 1=统一指定时间 2=领券当日起多少天可用 3=领券次日起多少天可用")
|
|
|
- private Integer activeType;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "多少天后过期")
|
|
|
- private Integer activeDay;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "优惠券使用开始时间")
|
|
|
- private Date activeStartTime;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "优惠券使用结束时间")
|
|
|
- private Date activeEndTime;
|
|
|
+ @ApiModelProperty(value = "优惠券面值")
|
|
|
+ private BigDecimal couponValue;
|
|
|
|
|
|
- @ApiModelProperty(value = "领取人群 0=所有会员 1=指定标签 2=指定会员 3=全部业务员,4=全部普通用户")
|
|
|
- private Integer receiveCrowd;
|
|
|
+ @ApiModelProperty(value = "发放总量")
|
|
|
+ private Integer couponAmount;
|
|
|
|
|
|
- @ApiModelProperty(value = "每人限领次数 0=不限次数")
|
|
|
+ @ApiModelProperty(value = "每人限领次数")
|
|
|
private Integer receiveLimitCount;
|
|
|
|
|
|
- @ApiModelProperty(value = "限制原价商品 false=不限制 true=限制")
|
|
|
- private Boolean originalPriceLimit;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "排序(降序)")
|
|
|
- private Integer sortNum;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "优惠值")
|
|
|
- private BigDecimal couponValue;
|
|
|
+ @ApiModelProperty(value = "显示时间")
|
|
|
+ private Date displayTime;
|
|
|
|
|
|
- @ApiModelProperty(value = "使用说明")
|
|
|
- private String note;
|
|
|
|
|
|
@ApiModelProperty(value = "优惠券领取开始时间")
|
|
|
private Date obtainStartTime;
|
|
@@ -71,42 +63,32 @@ public class CouponVO {
|
|
|
@ApiModelProperty(value = "优惠券领取结束时间")
|
|
|
private Date obtainEndTime;
|
|
|
|
|
|
- @ApiModelProperty(value = "券显示时间")
|
|
|
- private Date displayTime;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "发布开始时间")
|
|
|
- private Date releaseStartTime;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "发布结束时间")
|
|
|
- private Date releaseEndTime;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "标志 WAIT=待发布 START=进行中 END=结束 CANCEL=取消")
|
|
|
- private String flag;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "领取数量")
|
|
|
- private Integer receiveAmount;
|
|
|
+ @ApiModelProperty(value = "领券多少天内有效")
|
|
|
+ private Integer activeDay;
|
|
|
|
|
|
- @ApiModelProperty(value = "剩余数量")
|
|
|
- private Integer leftAmount;
|
|
|
+ @ApiModelProperty(value = "优惠券使用开始时间")
|
|
|
+ private Date activeStartTime;
|
|
|
|
|
|
- @ApiModelProperty(value = "备注")
|
|
|
- private String remark;
|
|
|
+ @ApiModelProperty(value = "优惠券使用结束时间")
|
|
|
+ private Date activeEndTime;
|
|
|
|
|
|
- @ApiModelProperty(value = "是否可以转让,1:可转让,0:不可转让")
|
|
|
- private Boolean transferType;
|
|
|
+ @ApiModelProperty(value = "领取条件")
|
|
|
+ private CouponCrowdEnum receiveCrowd;
|
|
|
|
|
|
@ApiModelProperty(value = "创建时间")
|
|
|
@TableField(fill = FieldFill.INSERT)
|
|
|
private Date createTime;
|
|
|
|
|
|
- @ApiModelProperty(value = "业务员券分享次数")
|
|
|
- private Integer shareTimes;
|
|
|
+ @ApiModelProperty(value = "修改时间")
|
|
|
+ @TableField(fill = FieldFill.INSERT_UPDATE)
|
|
|
+ private Date updateTime;
|
|
|
|
|
|
- @ApiModelProperty(value = "企业微信id")
|
|
|
- private String companyWechatId;
|
|
|
-
|
|
|
- @ApiModelProperty(value = "企业名称")
|
|
|
- private String companyName;
|
|
|
+ @ApiModelProperty(value = "创建人")
|
|
|
+ @TableField(fill = FieldFill.INSERT)
|
|
|
+ private String createBy;
|
|
|
|
|
|
+ @ApiModelProperty(value = "修改人")
|
|
|
+ @TableField(fill = FieldFill.INSERT_UPDATE)
|
|
|
+ private String updateBy;
|
|
|
|
|
|
}
|