标签:imp 过期 stand 根据 sig user 注册 model incr
public enum EnumShopcartGoodsIsSelect { Y("Y"),N("N"); private String strValue; EnumShopcartGoodsIsSelect(String strValue){ this.strValue = strValue; } public String getValue(){ return strValue; } }
ShopcartGoods shopcartGoods = new ShopcartGoods();
shopcartGoods.setIsSelected(EnumShopcartGoodsIsSelect.Y.getValue());
package com.j1.base.order.enums.member; /** * 会员积分获得类型 * 说明:根据表 MEMBER_POINTS_SETTING 建的 , 具体查看表 * @author shl * @version 2017/12/5 14:56. */ public enum EnumMemberPointsType { //兑换商品 PRODUCT_POINTS(1,"product_points",0,null,"兑换商品"), //兑换优惠券 COUPON_POINTS(2,"coupon_points",0,null,"兑换优惠券"), //订单获得 ORDER_POINTS(3,"order_points",0,null,"订单获得"), //评价获得 COMMENT_POINTS(4,"comment_points",0,21,"评价获得"), //注册获得 REGISTER_POINTS(5,"register_points",100,22,"注册获得"), //人工增加 MANUAL_POINTS(6,"manual_points",0,null,"人工增加"), //订单退还 BACK_POINTS(7,"back_points",0,null,"订单退还"), //订单取消退回 CANCEL_POINTS(8,"cancel_points",0,null,"订单取消退回"), //邮箱验证获得 EMAIL_POINTS(9,"email_points",100,null,"邮箱验证获得"), //评价获得 COMMENT_POINTS_10(10,"comment_points",20,22,"评价获得"), //评价获得 COMMENT_POINTS_11(11,"comment_points",20,23,"评价获得"), //评价获得 COMMENT_POINTS_12(12,"comment_points",20,24,"评价获得"), //评价获得 COMMENT_POINTS_13(13,"comment_points",20,25,"评价获得"), //积分异常处理 POINT_EXCEPTION(14,"comment_points",0,null,"积分异常处理"), //订单使用 ORDER_USE(15,"order_use",0,null,"订单使用"), //积分过期 OUTDATE_POINTS(16,"outdate_points",10,28,"积分过期"), //抽奖积分使用 LUCKY_POINTS(17,"lucky_points",0,23,"抽奖积分使用"), //积分规则升级 POINT_UPGRADE(18,"point_upgrade",0,null,"积分规则升级"), //每日签到 SIGN_DAY(20,"sign_day",5,null,"每日签到"), //签到初始积分 SIGN_INIT(22,"sign_init",4,null,"签到初始积分"), //签到递增积分 SIGN_INCREASE(23,"sign_increase",4,null,"签到递增积分"), //签到最大积分 SIGN_MAX(24,"sign_max",8,null,"签到最大积分"), //签到额外奖励 SIGN_PRIZE(25,"sign_prize",1000,null,"签到额外奖励"), //第一天签到3分,第二天6分,以此类推,第五天15分,积分不再增加。中间如果断开,则从头开始累积积分12222 SIGN_RULE(26,"sign_rule",0,null,"签到规则"), //签到积分 SIGN_DESC(27,"sign_desc",0,null,"签到积分"), //恢复订单 RECOVE_ORDER(28,"recove_order",0,null,"恢复订单"), //门店消费 STORE_CONSUMPTION(29,"store_consumption",0,null,"门店消费"), //账户合并 ACCOUNT_TOGETHER(30,"account_together",0,null,"账户合并"), //商品赠送积分 GOODS_GIFT(31,"goods_gift",0,null,"商品赠送积分") ; private EnumMemberPointsType( Integer id, String pointsType, Integer points, Integer memberRankId , String pointsDesc ){ this.id = id; this.pointsType = pointsType; this.points = points; this.memberRankId = memberRankId; this.pointsDesc = pointsDesc; } //会员积分获得类型id private Integer id; //会员积分获得类型 private String pointsType; //积分 private Integer points; //会员等级 private Integer memberRankId; //积分描述 private String pointsDesc; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getMemberRankId() { return memberRankId; } public void setMemberRankId(Integer memberRankId) { this.memberRankId = memberRankId; } public Integer getPoints() { return points; } public void setPoints(Integer points) { this.points = points; } public String getPointsDesc() { return pointsDesc; } public void setPointsDesc(String pointsDesc) { this.pointsDesc = pointsDesc; } public String getPointsType() { return pointsType; } public void setPointsType(String pointsType) { this.pointsType = pointsType; } }
package com.j1.base.order.model;
import com.j1.base.model.BaseBO; import com.j1.base.order.enums.shopcart.EnumShopcartPattern; import java.math.BigDecimal; public class ShopcartGoods extends BaseBO{ private String shopcartGoodsType;//海外商品还是j1商品 /* * ID */ private Long shopcartGoodsId; /* * 识别码 */ private String contentNo; /* * 购物车商品信息 商品ID,商品数量,多规格ID,渠道ID,是否选中 */ private String isSelected; /* * 促销类型,按促销条件"ruleId""或按商品"goodsId" */ private String promoteType; /* * 对应的促销ID或商品ID */ private Long promoteId; /* * 促销的itemId */ private Long promoteItemId; /* * 促销选中的商品集合,格式:goodsId,goodsId,goodsId */ private String goodsIds; private String standby1; private String standby2; private String standby3; private String standby4; private String standby5; //会员识别码
private String memberKey; //是否合并(不合并只取识别码中的信息,Y/N) private String isMerger;
pointsHis.setChangeType(EnumMemberPointsType.GOODS_GIFT.getId().toString());
package com.j1.member.model; import java.io.Serializable; import com.j1.base.model.BaseBO; public class MemberPointsHis extends BaseBO implements Serializable{ private static final long serialVersionUID = 3560432698581649730L; private Long memberPointsHisId; private Long memberId; private String changeType; private String changeTime; private Integer points; private Integer pointsBefore; private Integer pointsAfter; private Long orderId; private Integer dealUserId; private String changeNotes; private String loginName; private String realName; private String mobile; private String changeTimeBg; private String changeTimeEd; private String userRealName; private String signSource; private String memberKey; private Long sealedMemberId; public Long getSealedMemberId() { return sealedMemberId; } public void setSealedMemberId(Long sealedMemberId) { this.sealedMemberId = sealedMemberId; } public String getSignSource() { return signSource; } public void setSignSource(String signSource) { this.signSource = signSource; } public Long getMemberPointsHisId() { return memberPointsHisId; } public void setMemberPointsHisId(Long memberPointsHisId) { this.memberPointsHisId = memberPointsHisId; } public Long getMemberId() { return memberId; } public void setMemberId(Long memberId) { this.memberId = memberId; } public String getChangeType() { return changeType; } public void setChangeType(String changeType) { this.changeType = changeType; } public String getChangeTime() { return changeTime; } public void setChangeTime(String changeTime) { this.changeTime = changeTime; } public Integer getPoints() { return points; } public void setPoints(Integer points) { this.points = points; } public Integer getPointsBefore() { return pointsBefore; } public void setPointsBefore(Integer pointsBefore) { this.pointsBefore = pointsBefore; } public Integer getPointsAfter() { return pointsAfter; } public void setPointsAfter(Integer pointsAfter) { this.pointsAfter = pointsAfter; } public Long getOrderId() { return orderId; } public void setOrderId(Long orderId) { this.orderId = orderId; } public Integer getDealUserId() { return dealUserId; } public void setDealUserId(Integer dealUserId) { this.dealUserId = dealUserId; } public String getChangeNotes() { return changeNotes; } public void setChangeNotes(String changeNotes) { this.changeNotes = changeNotes; } public String getLoginName() { return loginName; } public void setLoginName(String loginName) { this.loginName = loginName; } public String getRealName() { return realName; } public void setRealName(String realName) { this.realName = realName; } public String getMobile() { return mobile; } public void setMobile(String mobile) { this.mobile = mobile; } public String getChangeTimeBg() { return changeTimeBg; } public void setChangeTimeBg(String changeTimeBg) { this.changeTimeBg = changeTimeBg; } public String getChangeTimeEd() { return changeTimeEd; } public void setChangeTimeEd(String changeTimeEd) { this.changeTimeEd = changeTimeEd; } public String getUserRealName() { return userRealName; } public void setUserRealName(String userRealName) { this.userRealName = userRealName; } public String getMemberKey() { return memberKey; } public void setMemberKey(String memberKey) { this.memberKey = memberKey; } @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((changeNotes == null) ? 0 : changeNotes.hashCode()); result = prime * result + ((changeTime == null) ? 0 : changeTime.hashCode()); result = prime * result + ((changeTimeBg == null) ? 0 : changeTimeBg.hashCode()); result = prime * result + ((changeTimeEd == null) ? 0 : changeTimeEd.hashCode()); result = prime * result + ((changeType == null) ? 0 : changeType.hashCode()); result = prime * result + ((dealUserId == null) ? 0 : dealUserId.hashCode()); result = prime * result + ((loginName == null) ? 0 : loginName.hashCode()); result = prime * result + ((memberId == null) ? 0 : memberId.hashCode()); result = prime * result + ((memberPointsHisId == null) ? 0 : memberPointsHisId .hashCode()); result = prime * result + ((mobile == null) ? 0 : mobile.hashCode()); result = prime * result + ((orderId == null) ? 0 : orderId.hashCode()); result = prime * result + ((points == null) ? 0 : points.hashCode()); result = prime * result + ((pointsAfter == null) ? 0 : pointsAfter.hashCode()); result = prime * result + ((pointsBefore == null) ? 0 : pointsBefore.hashCode()); result = prime * result + ((realName == null) ? 0 : realName.hashCode()); result = prime * result + ((userRealName == null) ? 0 : userRealName.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; MemberPointsHis other = (MemberPointsHis) obj; if (changeNotes == null) { if (other.changeNotes != null) return false; } else if (!changeNotes.equals(other.changeNotes)) return false; if (changeTime == null) { if (other.changeTime != null) return false; } else if (!changeTime.equals(other.changeTime)) return false; if (changeTimeBg == null) { if (other.changeTimeBg != null) return false; } else if (!changeTimeBg.equals(other.changeTimeBg)) return false; if (changeTimeEd == null) { if (other.changeTimeEd != null) return false; } else if (!changeTimeEd.equals(other.changeTimeEd)) return false; if (changeType == null) { if (other.changeType != null) return false; } else if (!changeType.equals(other.changeType)) return false; if (dealUserId == null) { if (other.dealUserId != null) return false; } else if (!dealUserId.equals(other.dealUserId)) return false; if (loginName == null) { if (other.loginName != null) return false; } else if (!loginName.equals(other.loginName)) return false; if (memberId == null) { if (other.memberId != null) return false; } else if (!memberId.equals(other.memberId)) return false; if (memberPointsHisId == null) { if (other.memberPointsHisId != null) return false; } else if (!memberPointsHisId.equals(other.memberPointsHisId)) return false; if (mobile == null) { if (other.mobile != null) return false; } else if (!mobile.equals(other.mobile)) return false; if (orderId == null) { if (other.orderId != null) return false; } else if (!orderId.equals(other.orderId)) return false; if (points == null) { if (other.points != null) return false; } else if (!points.equals(other.points)) return false; if (pointsAfter == null) { if (other.pointsAfter != null) return false; } else if (!pointsAfter.equals(other.pointsAfter)) return false; if (pointsBefore == null) { if (other.pointsBefore != null) return false; } else if (!pointsBefore.equals(other.pointsBefore)) return false; if (realName == null) { if (other.realName != null) return false; } else if (!realName.equals(other.realName)) return false; if (userRealName == null) { if (other.userRealName != null) return false; } else if (!userRealName.equals(other.userRealName)) return false; return true; } @Override public String toString() { return "MemberPointsHis [memberPointsHisId=" + memberPointsHisId + ", memberId=" + memberId + ", changeType=" + changeType + ", changeTime=" + changeTime + ", points=" + points + ", pointsBefore=" + pointsBefore + ", pointsAfter=" + pointsAfter + ", orderId=" + orderId + ", dealUserId=" + dealUserId + ", changeNotes=" + changeNotes + ", loginName=" + loginName + ", realName=" + realName + ", mobile=" + mobile + ", changeTimeBg=" + changeTimeBg + ", changeTimeEd=" + changeTimeEd + ", userRealName=" + userRealName + "]"; } }
标签:imp 过期 stand 根据 sig user 注册 model incr
原文地址:https://www.cnblogs.com/wangchuanfu/p/10055139.html