加入支付宝回调接口逻辑,会员关系树和会员账户流水 mapper累
This commit is contained in:
@@ -7,11 +7,11 @@ package com.buy507.mall.model;
|
||||
*/
|
||||
public enum MemberLevel {
|
||||
|
||||
Member(0), //普通会员
|
||||
Consumer(1), //消费商
|
||||
Partner(2), //经销商
|
||||
Diamond(3), //合作商
|
||||
OneDiamond(4), //初级合作商
|
||||
Member(0), //普通用户
|
||||
Consumer(1), //vip会员
|
||||
Partner(2), //店长
|
||||
Diamond(3), //代理
|
||||
OneDiamond(4), //总监
|
||||
TwoDiamond(5), //中级合作商
|
||||
ThreeDiamond(6), //高级合作商
|
||||
FourDiamond(7); //特级合作商
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
package com.buy507.mall.model;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
public class UmsMemberAccountTransaction implements Serializable {
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "会员id")
|
||||
private Long memberId;
|
||||
|
||||
@ApiModelProperty(value = "订单id")
|
||||
private Long orderId;
|
||||
|
||||
@ApiModelProperty(value = "进帐金额")
|
||||
private BigDecimal revenueAmount;
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
|
||||
@ApiModelProperty(value = "提成比例")
|
||||
private Integer commissionRatio;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getMemberId() {
|
||||
return memberId;
|
||||
}
|
||||
|
||||
public void setMemberId(Long memberId) {
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public Long getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(Long orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public BigDecimal getRevenueAmount() {
|
||||
return revenueAmount;
|
||||
}
|
||||
|
||||
public void setRevenueAmount(BigDecimal revenueAmount) {
|
||||
this.revenueAmount = revenueAmount;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public Integer getCommissionRatio() {
|
||||
return commissionRatio;
|
||||
}
|
||||
|
||||
public void setCommissionRatio(Integer commissionRatio) {
|
||||
this.commissionRatio = commissionRatio;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", memberId=").append(memberId);
|
||||
sb.append(", orderId=").append(orderId);
|
||||
sb.append(", revenueAmount=").append(revenueAmount);
|
||||
sb.append(", remarks=").append(remarks);
|
||||
sb.append(", commissionRatio=").append(commissionRatio);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,632 @@
|
||||
package com.buy507.mall.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class UmsMemberAccountTransactionExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public UmsMemberAccountTransactionExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdIsNull() {
|
||||
addCriterion("member_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdIsNotNull() {
|
||||
addCriterion("member_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdEqualTo(Long value) {
|
||||
addCriterion("member_id =", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdNotEqualTo(Long value) {
|
||||
addCriterion("member_id <>", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdGreaterThan(Long value) {
|
||||
addCriterion("member_id >", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("member_id >=", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdLessThan(Long value) {
|
||||
addCriterion("member_id <", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("member_id <=", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdIn(List<Long> values) {
|
||||
addCriterion("member_id in", values, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdNotIn(List<Long> values) {
|
||||
addCriterion("member_id not in", values, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdBetween(Long value1, Long value2) {
|
||||
addCriterion("member_id between", value1, value2, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("member_id not between", value1, value2, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdIsNull() {
|
||||
addCriterion("order_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdIsNotNull() {
|
||||
addCriterion("order_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdEqualTo(Long value) {
|
||||
addCriterion("order_id =", value, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdNotEqualTo(Long value) {
|
||||
addCriterion("order_id <>", value, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdGreaterThan(Long value) {
|
||||
addCriterion("order_id >", value, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("order_id >=", value, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdLessThan(Long value) {
|
||||
addCriterion("order_id <", value, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("order_id <=", value, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdIn(List<Long> values) {
|
||||
addCriterion("order_id in", values, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdNotIn(List<Long> values) {
|
||||
addCriterion("order_id not in", values, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdBetween(Long value1, Long value2) {
|
||||
addCriterion("order_id between", value1, value2, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrderIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("order_id not between", value1, value2, "orderId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountIsNull() {
|
||||
addCriterion("revenue_amount is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountIsNotNull() {
|
||||
addCriterion("revenue_amount is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountEqualTo(BigDecimal value) {
|
||||
addCriterion("revenue_amount =", value, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountNotEqualTo(BigDecimal value) {
|
||||
addCriterion("revenue_amount <>", value, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountGreaterThan(BigDecimal value) {
|
||||
addCriterion("revenue_amount >", value, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("revenue_amount >=", value, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountLessThan(BigDecimal value) {
|
||||
addCriterion("revenue_amount <", value, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("revenue_amount <=", value, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountIn(List<BigDecimal> values) {
|
||||
addCriterion("revenue_amount in", values, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountNotIn(List<BigDecimal> values) {
|
||||
addCriterion("revenue_amount not in", values, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("revenue_amount between", value1, value2, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRevenueAmountNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("revenue_amount not between", value1, value2, "revenueAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksIsNull() {
|
||||
addCriterion("remarks is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksIsNotNull() {
|
||||
addCriterion("remarks is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksEqualTo(String value) {
|
||||
addCriterion("remarks =", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksNotEqualTo(String value) {
|
||||
addCriterion("remarks <>", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksGreaterThan(String value) {
|
||||
addCriterion("remarks >", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("remarks >=", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksLessThan(String value) {
|
||||
addCriterion("remarks <", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksLessThanOrEqualTo(String value) {
|
||||
addCriterion("remarks <=", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksLike(String value) {
|
||||
addCriterion("remarks like", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksNotLike(String value) {
|
||||
addCriterion("remarks not like", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksIn(List<String> values) {
|
||||
addCriterion("remarks in", values, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksNotIn(List<String> values) {
|
||||
addCriterion("remarks not in", values, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksBetween(String value1, String value2) {
|
||||
addCriterion("remarks between", value1, value2, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksNotBetween(String value1, String value2) {
|
||||
addCriterion("remarks not between", value1, value2, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioIsNull() {
|
||||
addCriterion("commission_ratio is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioIsNotNull() {
|
||||
addCriterion("commission_ratio is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioEqualTo(Integer value) {
|
||||
addCriterion("commission_ratio =", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioNotEqualTo(Integer value) {
|
||||
addCriterion("commission_ratio <>", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioGreaterThan(Integer value) {
|
||||
addCriterion("commission_ratio >", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("commission_ratio >=", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioLessThan(Integer value) {
|
||||
addCriterion("commission_ratio <", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("commission_ratio <=", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioIn(List<Integer> values) {
|
||||
addCriterion("commission_ratio in", values, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioNotIn(List<Integer> values) {
|
||||
addCriterion("commission_ratio not in", values, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioBetween(Integer value1, Integer value2) {
|
||||
addCriterion("commission_ratio between", value1, value2, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("commission_ratio not between", value1, value2, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,10 +5,13 @@ import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class UmsMemberLevel implements Serializable {
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "会员名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "会员等级升级点")
|
||||
private Integer growthPoint;
|
||||
|
||||
@ApiModelProperty(value = "是否为默认等级:0->不是;1->是")
|
||||
@@ -38,8 +41,12 @@ public class UmsMemberLevel implements Serializable {
|
||||
@ApiModelProperty(value = "是否有生日特权")
|
||||
private Integer priviledgeBirthday;
|
||||
|
||||
@ApiModelProperty(value = "注释")
|
||||
private String note;
|
||||
|
||||
@ApiModelProperty(value = "提成比例")
|
||||
private Integer commissionRatio;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getId() {
|
||||
@@ -146,6 +153,14 @@ public class UmsMemberLevel implements Serializable {
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public Integer getCommissionRatio() {
|
||||
return commissionRatio;
|
||||
}
|
||||
|
||||
public void setCommissionRatio(Integer commissionRatio) {
|
||||
this.commissionRatio = commissionRatio;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
@@ -165,6 +180,7 @@ public class UmsMemberLevel implements Serializable {
|
||||
sb.append(", priviledgeMemberPrice=").append(priviledgeMemberPrice);
|
||||
sb.append(", priviledgeBirthday=").append(priviledgeBirthday);
|
||||
sb.append(", note=").append(note);
|
||||
sb.append(", commissionRatio=").append(commissionRatio);
|
||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
|
||||
@@ -904,6 +904,66 @@ public class UmsMemberLevelExample {
|
||||
addCriterion("note not between", value1, value2, "note");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioIsNull() {
|
||||
addCriterion("commission_ratio is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioIsNotNull() {
|
||||
addCriterion("commission_ratio is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioEqualTo(Integer value) {
|
||||
addCriterion("commission_ratio =", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioNotEqualTo(Integer value) {
|
||||
addCriterion("commission_ratio <>", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioGreaterThan(Integer value) {
|
||||
addCriterion("commission_ratio >", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("commission_ratio >=", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioLessThan(Integer value) {
|
||||
addCriterion("commission_ratio <", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("commission_ratio <=", value, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioIn(List<Integer> values) {
|
||||
addCriterion("commission_ratio in", values, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioNotIn(List<Integer> values) {
|
||||
addCriterion("commission_ratio not in", values, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioBetween(Integer value1, Integer value2) {
|
||||
addCriterion("commission_ratio between", value1, value2, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCommissionRatioNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("commission_ratio not between", value1, value2, "commissionRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.buy507.mall.model;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class UmsMemberRelationTree implements Serializable {
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "会员id")
|
||||
private Long memberId;
|
||||
|
||||
@ApiModelProperty(value = "上级会员id")
|
||||
private Integer higherLevelId;
|
||||
|
||||
@ApiModelProperty(value = "0 未退出,1 退出队列")
|
||||
private Integer quitQueueMark;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getMemberId() {
|
||||
return memberId;
|
||||
}
|
||||
|
||||
public void setMemberId(Long memberId) {
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public Integer getHigherLevelId() {
|
||||
return higherLevelId;
|
||||
}
|
||||
|
||||
public void setHigherLevelId(Integer higherLevelId) {
|
||||
this.higherLevelId = higherLevelId;
|
||||
}
|
||||
|
||||
public Integer getQuitQueueMark() {
|
||||
return quitQueueMark;
|
||||
}
|
||||
|
||||
public void setQuitQueueMark(Integer quitQueueMark) {
|
||||
this.quitQueueMark = quitQueueMark;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", memberId=").append(memberId);
|
||||
sb.append(", higherLevelId=").append(higherLevelId);
|
||||
sb.append(", quitQueueMark=").append(quitQueueMark);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,501 @@
|
||||
package com.buy507.mall.model;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class UmsMemberRelationTreeExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public UmsMemberRelationTreeExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdIsNull() {
|
||||
addCriterion("member_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdIsNotNull() {
|
||||
addCriterion("member_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdEqualTo(Long value) {
|
||||
addCriterion("member_id =", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdNotEqualTo(Long value) {
|
||||
addCriterion("member_id <>", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdGreaterThan(Long value) {
|
||||
addCriterion("member_id >", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("member_id >=", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdLessThan(Long value) {
|
||||
addCriterion("member_id <", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("member_id <=", value, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdIn(List<Long> values) {
|
||||
addCriterion("member_id in", values, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdNotIn(List<Long> values) {
|
||||
addCriterion("member_id not in", values, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdBetween(Long value1, Long value2) {
|
||||
addCriterion("member_id between", value1, value2, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andMemberIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("member_id not between", value1, value2, "memberId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdIsNull() {
|
||||
addCriterion("higher_level_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdIsNotNull() {
|
||||
addCriterion("higher_level_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdEqualTo(Integer value) {
|
||||
addCriterion("higher_level_id =", value, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdNotEqualTo(Integer value) {
|
||||
addCriterion("higher_level_id <>", value, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdGreaterThan(Integer value) {
|
||||
addCriterion("higher_level_id >", value, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("higher_level_id >=", value, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdLessThan(Integer value) {
|
||||
addCriterion("higher_level_id <", value, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("higher_level_id <=", value, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdIn(List<Integer> values) {
|
||||
addCriterion("higher_level_id in", values, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdNotIn(List<Integer> values) {
|
||||
addCriterion("higher_level_id not in", values, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("higher_level_id between", value1, value2, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHigherLevelIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("higher_level_id not between", value1, value2, "higherLevelId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkIsNull() {
|
||||
addCriterion("quit_queue_mark is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkIsNotNull() {
|
||||
addCriterion("quit_queue_mark is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkEqualTo(Integer value) {
|
||||
addCriterion("quit_queue_mark =", value, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkNotEqualTo(Integer value) {
|
||||
addCriterion("quit_queue_mark <>", value, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkGreaterThan(Integer value) {
|
||||
addCriterion("quit_queue_mark >", value, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("quit_queue_mark >=", value, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkLessThan(Integer value) {
|
||||
addCriterion("quit_queue_mark <", value, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("quit_queue_mark <=", value, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkIn(List<Integer> values) {
|
||||
addCriterion("quit_queue_mark in", values, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkNotIn(List<Integer> values) {
|
||||
addCriterion("quit_queue_mark not in", values, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkBetween(Integer value1, Integer value2) {
|
||||
addCriterion("quit_queue_mark between", value1, value2, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andQuitQueueMarkNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("quit_queue_mark not between", value1, value2, "quitQueueMark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,243 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.buy507.mall.model.CmsTopic.UmsMemberAccountTransactionMapper">
|
||||
<resultMap id="BaseResultMap" type="com.buy507.mall.model.UmsMemberAccountTransaction">
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="member_id" jdbcType="BIGINT" property="memberId" />
|
||||
<result column="order_id" jdbcType="BIGINT" property="orderId" />
|
||||
<result column="revenue_amount" jdbcType="DECIMAL" property="revenueAmount" />
|
||||
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
||||
<result column="commission_ratio" jdbcType="INTEGER" property="commissionRatio" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, member_id, order_id, revenue_amount, remarks, commission_ratio, create_time
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.buy507.mall.model.UmsMemberAccountTransactionExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from ums_member_account_transaction
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from ums_member_account_transaction
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from ums_member_account_transaction
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.buy507.mall.model.UmsMemberAccountTransactionExample">
|
||||
delete from ums_member_account_transaction
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.buy507.mall.model.UmsMemberAccountTransaction">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into ums_member_account_transaction (member_id, order_id, revenue_amount,
|
||||
remarks, commission_ratio, create_time
|
||||
)
|
||||
values (#{memberId,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{revenueAmount,jdbcType=DECIMAL},
|
||||
#{remarks,jdbcType=VARCHAR}, #{commissionRatio,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.buy507.mall.model.UmsMemberAccountTransaction">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into ums_member_account_transaction
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">
|
||||
member_id,
|
||||
</if>
|
||||
<if test="orderId != null">
|
||||
order_id,
|
||||
</if>
|
||||
<if test="revenueAmount != null">
|
||||
revenue_amount,
|
||||
</if>
|
||||
<if test="remarks != null">
|
||||
remarks,
|
||||
</if>
|
||||
<if test="commissionRatio != null">
|
||||
commission_ratio,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">
|
||||
#{memberId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="orderId != null">
|
||||
#{orderId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="revenueAmount != null">
|
||||
#{revenueAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="remarks != null">
|
||||
#{remarks,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="commissionRatio != null">
|
||||
#{commissionRatio,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.buy507.mall.model.UmsMemberAccountTransactionExample" resultType="java.lang.Long">
|
||||
select count(*) from ums_member_account_transaction
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update ums_member_account_transaction
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.memberId != null">
|
||||
member_id = #{record.memberId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.orderId != null">
|
||||
order_id = #{record.orderId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.revenueAmount != null">
|
||||
revenue_amount = #{record.revenueAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.remarks != null">
|
||||
remarks = #{record.remarks,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.commissionRatio != null">
|
||||
commission_ratio = #{record.commissionRatio,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update ums_member_account_transaction
|
||||
set id = #{record.id,jdbcType=BIGINT},
|
||||
member_id = #{record.memberId,jdbcType=BIGINT},
|
||||
order_id = #{record.orderId,jdbcType=BIGINT},
|
||||
revenue_amount = #{record.revenueAmount,jdbcType=DECIMAL},
|
||||
remarks = #{record.remarks,jdbcType=VARCHAR},
|
||||
commission_ratio = #{record.commissionRatio,jdbcType=INTEGER},
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.buy507.mall.model.UmsMemberAccountTransaction">
|
||||
update ums_member_account_transaction
|
||||
<set>
|
||||
<if test="memberId != null">
|
||||
member_id = #{memberId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="orderId != null">
|
||||
order_id = #{orderId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="revenueAmount != null">
|
||||
revenue_amount = #{revenueAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="remarks != null">
|
||||
remarks = #{remarks,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="commissionRatio != null">
|
||||
commission_ratio = #{commissionRatio,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.buy507.mall.model.UmsMemberAccountTransaction">
|
||||
update ums_member_account_transaction
|
||||
set member_id = #{memberId,jdbcType=BIGINT},
|
||||
order_id = #{orderId,jdbcType=BIGINT},
|
||||
revenue_amount = #{revenueAmount,jdbcType=DECIMAL},
|
||||
remarks = #{remarks,jdbcType=VARCHAR},
|
||||
commission_ratio = #{commissionRatio,jdbcType=INTEGER},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -15,6 +15,7 @@
|
||||
<result column="priviledge_member_price" jdbcType="INTEGER" property="priviledgeMemberPrice" />
|
||||
<result column="priviledge_birthday" jdbcType="INTEGER" property="priviledgeBirthday" />
|
||||
<result column="note" jdbcType="VARCHAR" property="note" />
|
||||
<result column="commission_ratio" jdbcType="INTEGER" property="commissionRatio" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
@@ -77,7 +78,7 @@
|
||||
<sql id="Base_Column_List">
|
||||
id, name, growth_point, default_status, free_freight_point, comment_growth_point,
|
||||
priviledge_free_freight, priviledge_sign_in, priviledge_comment, priviledge_promotion,
|
||||
priviledge_member_price, priviledge_birthday, note
|
||||
priviledge_member_price, priviledge_birthday, note, commission_ratio
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.buy507.mall.model.UmsMemberLevelExample" resultMap="BaseResultMap">
|
||||
select
|
||||
@@ -117,12 +118,12 @@
|
||||
free_freight_point, comment_growth_point, priviledge_free_freight,
|
||||
priviledge_sign_in, priviledge_comment, priviledge_promotion,
|
||||
priviledge_member_price, priviledge_birthday,
|
||||
note)
|
||||
note, commission_ratio)
|
||||
values (#{name,jdbcType=VARCHAR}, #{growthPoint,jdbcType=INTEGER}, #{defaultStatus,jdbcType=INTEGER},
|
||||
#{freeFreightPoint,jdbcType=DECIMAL}, #{commentGrowthPoint,jdbcType=INTEGER}, #{priviledgeFreeFreight,jdbcType=INTEGER},
|
||||
#{priviledgeSignIn,jdbcType=INTEGER}, #{priviledgeComment,jdbcType=INTEGER}, #{priviledgePromotion,jdbcType=INTEGER},
|
||||
#{priviledgeMemberPrice,jdbcType=INTEGER}, #{priviledgeBirthday,jdbcType=INTEGER},
|
||||
#{note,jdbcType=VARCHAR})
|
||||
#{note,jdbcType=VARCHAR}, #{commissionRatio,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.buy507.mall.model.UmsMemberLevel">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
@@ -166,6 +167,9 @@
|
||||
<if test="note != null">
|
||||
note,
|
||||
</if>
|
||||
<if test="commissionRatio != null">
|
||||
commission_ratio,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">
|
||||
@@ -204,6 +208,9 @@
|
||||
<if test="note != null">
|
||||
#{note,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="commissionRatio != null">
|
||||
#{commissionRatio,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.buy507.mall.model.UmsMemberLevelExample" resultType="java.lang.Long">
|
||||
@@ -254,6 +261,9 @@
|
||||
<if test="record.note != null">
|
||||
note = #{record.note,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.commissionRatio != null">
|
||||
commission_ratio = #{record.commissionRatio,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -273,7 +283,8 @@
|
||||
priviledge_promotion = #{record.priviledgePromotion,jdbcType=INTEGER},
|
||||
priviledge_member_price = #{record.priviledgeMemberPrice,jdbcType=INTEGER},
|
||||
priviledge_birthday = #{record.priviledgeBirthday,jdbcType=INTEGER},
|
||||
note = #{record.note,jdbcType=VARCHAR}
|
||||
note = #{record.note,jdbcType=VARCHAR},
|
||||
commission_ratio = #{record.commissionRatio,jdbcType=INTEGER}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -317,6 +328,9 @@
|
||||
<if test="note != null">
|
||||
note = #{note,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="commissionRatio != null">
|
||||
commission_ratio = #{commissionRatio,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -333,7 +347,8 @@
|
||||
priviledge_promotion = #{priviledgePromotion,jdbcType=INTEGER},
|
||||
priviledge_member_price = #{priviledgeMemberPrice,jdbcType=INTEGER},
|
||||
priviledge_birthday = #{priviledgeBirthday,jdbcType=INTEGER},
|
||||
note = #{note,jdbcType=VARCHAR}
|
||||
note = #{note,jdbcType=VARCHAR},
|
||||
commission_ratio = #{commissionRatio,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,211 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.buy507.mall.model.CmsTopic.UmsMemberRelationTreeMapper">
|
||||
<resultMap id="BaseResultMap" type="com.buy507.mall.model.UmsMemberRelationTree">
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="member_id" jdbcType="BIGINT" property="memberId" />
|
||||
<result column="higher_level_id" jdbcType="INTEGER" property="higherLevelId" />
|
||||
<result column="quit_queue_mark" jdbcType="INTEGER" property="quitQueueMark" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, member_id, higher_level_id, quit_queue_mark, create_time
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.buy507.mall.model.UmsMemberRelationTreeExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from ums_member_relation_tree
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from ums_member_relation_tree
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
||||
delete from ums_member_relation_tree
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.buy507.mall.model.UmsMemberRelationTreeExample">
|
||||
delete from ums_member_relation_tree
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.buy507.mall.model.UmsMemberRelationTree">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into ums_member_relation_tree (member_id, higher_level_id, quit_queue_mark,
|
||||
create_time)
|
||||
values (#{memberId,jdbcType=BIGINT}, #{higherLevelId,jdbcType=INTEGER}, #{quitQueueMark,jdbcType=INTEGER},
|
||||
#{createTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.buy507.mall.model.UmsMemberRelationTree">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into ums_member_relation_tree
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">
|
||||
member_id,
|
||||
</if>
|
||||
<if test="higherLevelId != null">
|
||||
higher_level_id,
|
||||
</if>
|
||||
<if test="quitQueueMark != null">
|
||||
quit_queue_mark,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">
|
||||
#{memberId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="higherLevelId != null">
|
||||
#{higherLevelId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="quitQueueMark != null">
|
||||
#{quitQueueMark,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.buy507.mall.model.UmsMemberRelationTreeExample" resultType="java.lang.Long">
|
||||
select count(*) from ums_member_relation_tree
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update ums_member_relation_tree
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.memberId != null">
|
||||
member_id = #{record.memberId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.higherLevelId != null">
|
||||
higher_level_id = #{record.higherLevelId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.quitQueueMark != null">
|
||||
quit_queue_mark = #{record.quitQueueMark,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update ums_member_relation_tree
|
||||
set id = #{record.id,jdbcType=BIGINT},
|
||||
member_id = #{record.memberId,jdbcType=BIGINT},
|
||||
higher_level_id = #{record.higherLevelId,jdbcType=INTEGER},
|
||||
quit_queue_mark = #{record.quitQueueMark,jdbcType=INTEGER},
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.buy507.mall.model.UmsMemberRelationTree">
|
||||
update ums_member_relation_tree
|
||||
<set>
|
||||
<if test="memberId != null">
|
||||
member_id = #{memberId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="higherLevelId != null">
|
||||
higher_level_id = #{higherLevelId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="quitQueueMark != null">
|
||||
quit_queue_mark = #{quitQueueMark,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.buy507.mall.model.UmsMemberRelationTree">
|
||||
update ums_member_relation_tree
|
||||
set member_id = #{memberId,jdbcType=BIGINT},
|
||||
higher_level_id = #{higherLevelId,jdbcType=INTEGER},
|
||||
quit_queue_mark = #{quitQueueMark,jdbcType=INTEGER},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user