增加分润队列逻辑
This commit is contained in:
@@ -6,15 +6,19 @@ package com.buy507.mall.model;
|
||||
*
|
||||
*/
|
||||
public enum MemberLevel {
|
||||
|
||||
Member(0), //普通用户
|
||||
Consumer(1), //vip会员
|
||||
Partner(2), //店长
|
||||
Diamond(3), //代理
|
||||
OneDiamond(4), //总监
|
||||
TwoDiamond(5), //中级合作商
|
||||
ThreeDiamond(6), //高级合作商
|
||||
FourDiamond(7); //特级合作商
|
||||
/**普通用户**/
|
||||
Member(1),
|
||||
/**vip会员**/
|
||||
Consumer(2),
|
||||
/**店长**/
|
||||
Partner(3),
|
||||
/**代理**/
|
||||
Diamond(4),
|
||||
/** 市代 **/
|
||||
OneDiamond(5),
|
||||
TwoDiamond(6), //中级合作商
|
||||
ThreeDiamond(7), //高级合作商
|
||||
FourDiamond(8); //特级合作商
|
||||
|
||||
private int value;
|
||||
|
||||
|
||||
@@ -88,6 +88,12 @@ public class UmsMember implements Serializable {
|
||||
*/
|
||||
private String realName;
|
||||
|
||||
/**
|
||||
* 真实姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "排队状态:0->未排队;1->排队中")
|
||||
private Integer orderStatus;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getId() {
|
||||
@@ -290,6 +296,14 @@ public class UmsMember implements Serializable {
|
||||
this.realName = realName;
|
||||
}
|
||||
|
||||
public Integer getOrderStatus() {
|
||||
return orderStatus;
|
||||
}
|
||||
|
||||
public void setOrderStatus(Integer orderStatus) {
|
||||
this.orderStatus = orderStatus;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
@@ -321,4 +335,6 @@ public class UmsMember implements Serializable {
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -27,6 +27,7 @@
|
||||
<result column="freeze" jdbcType="DECIMAL" property="freeze" />
|
||||
<result column="detail_address" jdbcType="VARCHAR" property="detailAddress" />
|
||||
<result column="real_name" jdbcType="VARCHAR" property="realName" />
|
||||
<result column="order_status" jdbcType="INTEGER" property="orderStatus" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
@@ -89,7 +90,7 @@
|
||||
<sql id="Base_Column_List">
|
||||
id, member_level_id, member_level, username, password, nickname, phone, status, create_time, icon,
|
||||
gender, birthday, city, job, personalized_signature, source_type, integration, growth,
|
||||
luckey_count, history_integration, store_status, balance, freeze, detail_address, real_name
|
||||
luckey_count, history_integration, store_status, balance, freeze, detail_address, real_name,order_status
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.buy507.mall.model.UmsMemberExample" resultMap="BaseResultMap">
|
||||
select
|
||||
@@ -130,7 +131,7 @@
|
||||
create_time, icon, gender,
|
||||
birthday, city, job, personalized_signature,
|
||||
source_type, integration, growth,
|
||||
luckey_count, history_integration, store_status, balance, freeze, detail_address, real_name)
|
||||
luckey_count, history_integration, store_status, balance, freeze, detail_address, real_name,order_status)
|
||||
values (#{memberLevelId,jdbcType=BIGINT},
|
||||
#{memberLevel,jdbcType=INTEGER, typeHandler=org.apache.ibatis.type.EnumOrdinalTypeHandler},
|
||||
#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
||||
@@ -140,7 +141,7 @@
|
||||
#{sourceType,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER},
|
||||
#{luckeyCount,jdbcType=INTEGER}, #{historyIntegration,jdbcType=INTEGER},
|
||||
#{storeStatus, jdbcType=INTEGER, typeHandler=org.apache.ibatis.type.EnumOrdinalTypeHandler},
|
||||
#{balance,jdbcType=DECIMAL}, #{freeze,jdbcType=DECIMAL}, #{detailAddress,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR})
|
||||
#{balance,jdbcType=DECIMAL}, #{freeze,jdbcType=DECIMAL}, #{detailAddress,jdbcType=VARCHAR}, #{realName,jdbcType=VARCHAR} #{orderStatus,jdbcType=INTEGER} )
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.buy507.mall.model.UmsMember">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
@@ -220,6 +221,9 @@
|
||||
<if test="realName != null">
|
||||
real_name,
|
||||
</if>
|
||||
<if test="orderStatus != null">
|
||||
order_status,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="memberLevelId != null">
|
||||
@@ -294,6 +298,9 @@
|
||||
<if test="realName != null">
|
||||
#{real_name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderStatus != null">
|
||||
#{order_status,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.buy507.mall.model.UmsMemberExample" resultType="java.lang.Long">
|
||||
@@ -380,6 +387,9 @@
|
||||
<if test="record.realName != null">
|
||||
real_name = #{record.realName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.orderStatus != null">
|
||||
order_status = #{record.growth,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
@@ -411,7 +421,8 @@
|
||||
balance = #{record.balance,jdbcType=DECIMAL},
|
||||
freeze = #{record.freeze,jdbcType=DECIMAL},
|
||||
detail_address = #{record.detailAddress,jdbcType=VARCHAR},
|
||||
real_name = #{record.realName,jdbcType=VARCHAR}
|
||||
real_name = #{record.realName,jdbcType=VARCHAR},
|
||||
order_status = #{record.orderStatus,jdbcType=INTEGER}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -491,6 +502,9 @@
|
||||
<if test="realName != null">
|
||||
real_name = #{realName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderStatus != null">
|
||||
order_status = #{realName,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
@@ -520,6 +534,7 @@
|
||||
freeze = #{freeze,jdbcType=DECIMAL},
|
||||
detail_address = #{detailAddress,jdbcType=VARCHAR},
|
||||
real_name = #{realName,jdbcType=VARCHAR}
|
||||
order_status = #{orderStatus,jdbcType=INTEGER},
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<select id="selectPhoneExists" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
|
||||
Reference in New Issue
Block a user