From c4a098e3f88bc5071e36b92b9e5dcceb51129957 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期四, 01 六月 2023 23:25:07 +0800 Subject: [PATCH] 同步后台代码 --- management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/model/TCoupon.java | 106 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 97 insertions(+), 9 deletions(-) diff --git a/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/model/TCoupon.java b/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/model/TCoupon.java index e4cee29..f7372d8 100644 --- a/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/model/TCoupon.java +++ b/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/model/TCoupon.java @@ -1,5 +1,6 @@ package com.stylefeng.guns.modular.system.model; +import com.baomidou.mybatisplus.annotations.TableLogic; import com.baomidou.mybatisplus.enums.IdType; import java.math.BigDecimal; @@ -33,11 +34,21 @@ /** * 创建时间 */ - private Date createtime; + @ApiModelProperty(value = "创建时间") + @TableField("create_time") + private Date createTime; @ApiModelProperty(value = "用户id") @TableField("user_id") private Integer userId; + + @ApiModelProperty(value = "代理商id") + @TableField("agent_id") + private Integer agentId; + + @ApiModelProperty(value = "分公司id") + @TableField("branch_office_id") + private Integer branchOfficeId; @ApiModelProperty(value = "优惠券名称") @TableField("coupon_name") @@ -74,6 +85,71 @@ @ApiModelProperty(value = "赠送数量 新人券") @TableField("coupon_send_quantity") private Integer couponSendQuantity; + + @ApiModelProperty(value = "是否冻结 1正常 2冻结") + @TableField("coupon_state") + private Integer couponState; + + @ApiModelProperty(value = "优惠券数量") + @TableField("coupon_count") + private Integer couponCount; + + @ApiModelProperty(value = "剩余数量") + @TableField("remaining_quantity") + private Integer remainingQuantity; + + @ApiModelProperty(value = "删除 true未删除 false已删除") + @TableField("status") + @TableLogic + private Boolean status; + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public Integer getRemainingQuantity() { + return remainingQuantity; + } + + public void setRemainingQuantity(Integer remainingQuantity) { + this.remainingQuantity = remainingQuantity; + } + + public Integer getCouponCount() { + return couponCount; + } + + public void setCouponCount(Integer couponCount) { + this.couponCount = couponCount; + } + + public Integer getAgentId() { + return agentId; + } + + public void setAgentId(Integer agentId) { + this.agentId = agentId; + } + + public Integer getBranchOfficeId() { + return branchOfficeId; + } + + public void setBranchOfficeId(Integer branchOfficeId) { + this.branchOfficeId = branchOfficeId; + } + + public Integer getCouponState() { + return couponState; + } + + public void setCouponState(Integer couponState) { + this.couponState = couponState; + } public Integer getCouponValidity() { return couponValidity; @@ -155,12 +231,12 @@ this.id = id; } - public Date getCreatetime() { - return createtime; + public Date getCreateTime() { + return createTime; } - public void setCreatetime(Date createtime) { - this.createtime = createtime; + public void setCreateTime(Date createTime) { + this.createTime = createTime; } public String getCouponName() { @@ -179,9 +255,21 @@ @Override public String toString() { return "TCoupon{" + - "id=" + id + - ", createtime=" + createtime + - ", couponName=" + couponName + - "}"; + "id=" + id + + ", createTime=" + createTime + + ", userId=" + userId + + ", agentId=" + agentId + + ", branchOfficeId=" + branchOfficeId + + ", couponName='" + couponName + '\'' + + ", couponType=" + couponType + + ", couponCode='" + couponCode + '\'' + + ", couponStatus=" + couponStatus + + ", couponServiceType=" + couponServiceType + + ", couponConditionalAmount=" + couponConditionalAmount + + ", couponPreferentialAmount=" + couponPreferentialAmount + + ", couponValidity=" + couponValidity + + ", couponSendQuantity=" + couponSendQuantity + + ", couponState=" + couponState + + '}'; } } -- Gitblit v1.7.1