|
@@ -7,8 +7,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="MemberInfo" id="MemberInfoResult">
|
|
|
<result property="memberId" column="member_id" />
|
|
|
<result property="userId" column="user_id" />
|
|
|
- <result property="memberName" column="member_name" />
|
|
|
- <result property="memberCard" column="member_card" />
|
|
|
+ <result property="name" column="name" />
|
|
|
+ <result property="card" column="card" />
|
|
|
<result property="boundary" column="boundary" />
|
|
|
<result property="partyAffiliation" column="party_affiliation" />
|
|
|
<result property="phonenumber" column="phonenumber" />
|
|
@@ -24,15 +24,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMemberInfoVo">
|
|
|
- select member_id, user_id, member_name, member_card, boundary, party_affiliation, phonenumber, avatar, unit, studio, del_flag, create_by, create_time, update_by, update_time, remark from member_info
|
|
|
+ select member_id, user_id, name, card, boundary, party_affiliation, phonenumber, avatar, unit, studio, del_flag, create_by, create_time, update_by, update_time, remark from member_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectMemberInfoList" parameterType="MemberInfo" resultMap="MemberInfoResult">
|
|
|
<include refid="selectMemberInfoVo"/>
|
|
|
<where>
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
- <if test="memberName != null and memberName != ''"> and member_name like concat('%', #{memberName}, '%')</if>
|
|
|
- <if test="memberCard != null and memberCard != ''"> and member_card = #{memberCard}</if>
|
|
|
+ <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
+ <if test="card != null and card != ''"> and card = #{card}</if>
|
|
|
<if test="boundary != null and boundary != ''"> and boundary = #{boundary}</if>
|
|
|
<if test="partyAffiliation != null and partyAffiliation != ''"> and party_affiliation = #{partyAffiliation}</if>
|
|
|
<if test="phonenumber != null and phonenumber != ''"> and phonenumber = #{phonenumber}</if>
|
|
@@ -51,8 +51,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into member_info
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
- <if test="memberName != null and memberName != ''">member_name,</if>
|
|
|
- <if test="memberCard != null and memberCard != ''">member_card,</if>
|
|
|
+ <if test="name != null and name != ''">name,</if>
|
|
|
+ <if test="card != null and card != ''">card,</if>
|
|
|
<if test="boundary != null">boundary,</if>
|
|
|
<if test="partyAffiliation != null">party_affiliation,</if>
|
|
|
<if test="phonenumber != null">phonenumber,</if>
|
|
@@ -68,8 +68,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
- <if test="memberName != null and memberName != ''">#{memberName},</if>
|
|
|
- <if test="memberCard != null and memberCard != ''">#{memberCard},</if>
|
|
|
+ <if test="name != null and name != ''">#{name},</if>
|
|
|
+ <if test="card != null and card != ''">#{card},</if>
|
|
|
<if test="boundary != null">#{boundary},</if>
|
|
|
<if test="partyAffiliation != null">#{partyAffiliation},</if>
|
|
|
<if test="phonenumber != null">#{phonenumber},</if>
|
|
@@ -89,8 +89,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update member_info
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
- <if test="memberName != null and memberName != ''">member_name = #{memberName},</if>
|
|
|
- <if test="memberCard != null and memberCard != ''">member_card = #{memberCard},</if>
|
|
|
+ <if test="name != null and name != ''">name = #{name},</if>
|
|
|
+ <if test="card != null and card != ''">card = #{card},</if>
|
|
|
<if test="boundary != null">boundary = #{boundary},</if>
|
|
|
<if test="partyAffiliation != null">party_affiliation = #{partyAffiliation},</if>
|
|
|
<if test="phonenumber != null">phonenumber = #{phonenumber},</if>
|