From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 25 二月 2025 16:41:22 +0800 Subject: [PATCH] 淘宝转链接口更新 --- fanli/src/main/java/com/yeshi/fanli/entity/system/SystemCoupon.java | 442 +++++++++++++++++++++++++++++------------------------- 1 files changed, 236 insertions(+), 206 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemCoupon.java b/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemCoupon.java index be346ae..0c8bf28 100644 --- a/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemCoupon.java +++ b/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemCoupon.java @@ -1,206 +1,236 @@ -package com.yeshi.fanli.entity.system; - -import java.math.BigDecimal; -import java.util.Date; - -import org.yeshi.utils.mybatis.Column; -import org.yeshi.utils.mybatis.Table; - -/** - * 鏈湴鑷畾涔夊埜淇℃伅 - * @author Administrator - * - */ -@Table("yeshi_ec_system_coupon") -public class SystemCoupon { - - // 鍒哥被鍨� - public enum CouponTypeEnum { - freeCoupon("鍏嶅崟"), welfareFreeCoupon("绂忓埄鍏嶅崟"), rebatePercentCoupon("杩斿埄姣旀彁鎴愬鍔卞埜"); - - private final String desc; - - private CouponTypeEnum(String desc) { - this.desc = desc; - } - - public String getDesc() { - return desc; - } - } - - @Column(name = "sc_id") - private Long id; - - // 鐢ㄦ埛id - @Column(name = "sc_name") - private String name; - - // 鍥剧墖 - @Column(name = "sc_picture") - private String picture; - - // 绠�浠嬩綔鐢細浠绘��0鍏冭喘銆佸啀杩�10% - @Column(name = "sc_effect") - private String effect; - - // 鍒哥被鍨� - @Column(name = "sc_type") - private CouponTypeEnum type; - - // 鍒搁潰杩斿埄姣斾緥鍊� - @Column(name = "sc_percent") - private BigDecimal percent; - - // 鍒搁潰鍊� - @Column(name = "sc_amount") - private String amount; - - // 鏈夋晥鏈熷ぉ鏁� - @Column(name = "sc_expiry_day") - private Integer expiryDay; - - // 瑙勫垯 - @Column(name = "sc_rule") - private String rule; - - // 澶囨敞璇存槑 - @Column(name = "sc_remark") - private String remark; - - // 棰嗗彇鏁伴噺 - @Column(name = "sc_receive_count") - private Integer receiveCount; - - // 鐘舵�� 0鏈惎鐢� 1宸插惎鐢� - @Column(name = "sc_state") - private Integer state; - - // 鍒涘缓鏃堕棿 - @Column(name = "sc_create_time") - private Date createTime; - - // 鏇存柊鏃堕棿 - @Column(name = "sc_update_time") - private Date updateTime; - - public SystemCoupon() {} - - public SystemCoupon(Long id) { - this.id = id; - } - - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPicture() { - return picture; - } - - public void setPicture(String picture) { - this.picture = picture; - } - - public CouponTypeEnum getType() { - return type; - } - - public void setType(CouponTypeEnum type) { - this.type = type; - } - - public BigDecimal getPercent() { - return percent; - } - - public void setPercent(BigDecimal percent) { - this.percent = percent; - } - - public String getAmount() { - return amount; - } - - public void setAmount(String amount) { - this.amount = amount; - } - - public Integer getExpiryDay() { - return expiryDay; - } - - public void setExpiryDay(Integer expiryDay) { - this.expiryDay = expiryDay; - } - - public String getRule() { - return rule; - } - - public void setRule(String rule) { - this.rule = rule; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - public Integer getReceiveCount() { - return receiveCount; - } - - public void setReceiveCount(Integer receiveCount) { - this.receiveCount = receiveCount; - } - - public Integer getState() { - return state; - } - - public void setState(Integer state) { - this.state = state; - } - - public Date getCreateTime() { - return createTime; - } - - public void setCreateTime(Date createTime) { - this.createTime = createTime; - } - - public Date getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Date updateTime) { - this.updateTime = updateTime; - } - - public String getEffect() { - return effect; - } - - public void setEffect(String effect) { - this.effect = effect; - } - -} +package com.yeshi.fanli.entity.system; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +import org.yeshi.utils.generater.mybatis.Column; +import org.yeshi.utils.generater.mybatis.Table; + +/** + * 鏈湴鑷畾涔夊埜淇℃伅 + * @author Administrator + * + */ +@Table("yeshi_ec_system_coupon") +public class SystemCoupon implements Serializable{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + // 鍒哥被鍨� + public enum CouponTypeEnum { + freeCoupon("鑷喘鍏嶅崟鍒�"), welfareFreeCoupon("绂忓埄鍏嶅崟"), rebatePercentCoupon("杩斿埄姣旀彁鎴愬鍔卞埜"), + freeCouponBuy("鑷喘鍏嶅崟鍒�"),freeCouponGive("璧犻�佸厤鍗曞埜"); + private final String desc; + + private CouponTypeEnum(String desc) { + this.desc = desc; + } + + public String getDesc() { + return desc; + } + } + + @Column(name = "sc_id") + private Long id; + + // 鐢ㄦ埛id + @Column(name = "sc_name") + private String name; + + // 鍥剧墖-鏈夋晥 + @Column(name = "sc_picture") + private String picture; + + // 鍥剧墖-澶辨晥 + @Column(name = "sc_picture_invalid") + private String pictureInvalid; + + // 绠�浠嬩綔鐢細浠绘��0鍏冭喘銆佸啀杩�10% + @Column(name = "sc_effect") + private String effect; + + // 鍒哥被鍨� + @Column(name = "sc_type") + private CouponTypeEnum type; + + // 鍒搁潰杩斿埄姣斾緥鍊� + @Column(name = "sc_percent") + private BigDecimal percent; + + // 鍒搁潰鍊� + @Column(name = "sc_amount") + private String amount; + + // 鏈夋晥鏈熷ぉ-鍓╀綑婵�娲绘椂闂� + @Column(name = "sc_activate_day") + private Integer activateDay; + + // 鏈夋晥鏈熷ぉ鏁� + @Column(name = "sc_expiry_day") + private Integer expiryDay; + + // 瑙勫垯 + @Column(name = "sc_rule") + private String rule; + + // 瑙勫垯 + @Column(name = "sc_rule_link") + private String ruleLink; + + + // 澶囨敞璇存槑 + @Column(name = "sc_remark") + private String remark; + + // 鐘舵�� 0鏈惎鐢� 1宸插惎鐢� + @Column(name = "sc_state") + private Integer state; + + // 鍒涘缓鏃堕棿 + @Column(name = "sc_create_time") + private Date createTime; + + // 鏇存柊鏃堕棿 + @Column(name = "sc_update_time") + private Date updateTime; + + public SystemCoupon() {} + + public SystemCoupon(Long id) { + this.id = id; + } + + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPicture() { + return picture; + } + + public void setPicture(String picture) { + this.picture = picture; + } + + public CouponTypeEnum getType() { + return type; + } + + public void setType(CouponTypeEnum type) { + this.type = type; + } + + public BigDecimal getPercent() { + return percent; + } + + public void setPercent(BigDecimal percent) { + this.percent = percent; + } + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public Integer getExpiryDay() { + return expiryDay; + } + + public void setExpiryDay(Integer expiryDay) { + this.expiryDay = expiryDay; + } + + public String getRule() { + return rule; + } + + public void setRule(String rule) { + this.rule = rule; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public Integer getState() { + return state; + } + + public void setState(Integer state) { + this.state = state; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public String getEffect() { + return effect; + } + + public void setEffect(String effect) { + this.effect = effect; + } + + public String getPictureInvalid() { + return pictureInvalid; + } + + public void setPictureInvalid(String pictureInvalid) { + this.pictureInvalid = pictureInvalid; + } + + public String getRuleLink() { + return ruleLink; + } + + public void setRuleLink(String ruleLink) { + this.ruleLink = ruleLink; + } + + public Integer getActivateDay() { + return activateDay; + } + + public void setActivateDay(Integer activateDay) { + this.activateDay = activateDay; + } +} -- Gitblit v1.8.0