|
@@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="name" column="name" />
|
|
|
<result property="sex" column="sex" />
|
|
|
<result property="sfzmlx" column="sfzmlx" />
|
|
|
- <result property="sfzmhm" column="sfzmhm" />
|
|
|
+ <result property="idCard" column="idCard" />
|
|
|
<result property="crdate" column="crdate" />
|
|
|
<result property="birthday" column="birthday" />
|
|
|
<result property="mobile" column="mobile" />
|
|
@@ -21,11 +21,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="pxcx" column="pxcx" />
|
|
|
<result property="schoolClassTypeId" column="schoolClassTypeId" />
|
|
|
- <result property="coachId" column="coachId" />
|
|
|
+ <result property="coachnum" column="coachnum" />
|
|
|
+ <result property="status" column="status" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectUserInfoVo">
|
|
|
- select id, name, sex, sfzmlx, sfzmhm, crdate, birthday, mobile, password, wechar, openid, inscode, create_time, update_time, pxcx,schoolClassTypeId,coachId from user_info
|
|
|
+ select id, name, sex, sfzmlx, idCard, crdate, birthday, mobile, password, wechar, openid, inscode, create_time, update_time, pxcx,schoolClassTypeId,coachId from user_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectUserInfoList" parameterType="UserInfo" resultMap="UserInfoResult">
|
|
@@ -34,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
<if test="sex != null "> and sex = #{sex}</if>
|
|
|
<if test="sfzmlx != null "> and sfzmlx = #{sfzmlx}</if>
|
|
|
- <if test="sfzmhm != null and sfzmhm != ''"> and sfzmhm = #{sfzmhm}</if>
|
|
|
+ <if test="idCard != null and idCard != ''"> and idCard = #{idCard}</if>
|
|
|
<if test="crdate != null "> and crdate = #{crdate}</if>
|
|
|
<if test="birthday != null "> and birthday = #{birthday}</if>
|
|
|
<if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
|
|
@@ -44,7 +45,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="inscode != null and inscode != ''"> and inscode = #{inscode}</if>
|
|
|
<if test="pxcx != null and pxcx != ''"> and pxcx = #{pxcx}</if>
|
|
|
<if test="schoolClassTypeId != null">schoolClassTypeId,</if>
|
|
|
- <if test="coachId != null">coachId,</if>
|
|
|
+ <if test="coachnum != null">coachnum,</if>
|
|
|
+ <if test="status != null">status,</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -60,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null">name,</if>
|
|
|
<if test="sex != null">sex,</if>
|
|
|
<if test="sfzmlx != null">sfzmlx,</if>
|
|
|
- <if test="sfzmhm != null">sfzmhm,</if>
|
|
|
+ <if test="idCard != null">idCard,</if>
|
|
|
<if test="crdate != null">crdate,</if>
|
|
|
<if test="birthday != null">birthday,</if>
|
|
|
<if test="mobile != null">mobile,</if>
|
|
@@ -72,14 +74,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="pxcx != null">pxcx,</if>
|
|
|
<if test="schoolClassTypeId != null">schoolClassTypeId,</if>
|
|
|
- <if test="coachId != null">coachId,</if>
|
|
|
+ <if test="coachnum != null">coachnum,</if>
|
|
|
+ <if test="status != null">status,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
<if test="name != null">#{name},</if>
|
|
|
<if test="sex != null">#{sex},</if>
|
|
|
<if test="sfzmlx != null">#{sfzmlx},</if>
|
|
|
- <if test="sfzmhm != null">#{sfzmhm},</if>
|
|
|
+ <if test="idCard != null">#{idCard},</if>
|
|
|
<if test="crdate != null">#{crdate},</if>
|
|
|
<if test="birthday != null">#{birthday},</if>
|
|
|
<if test="mobile != null">#{mobile},</if>
|
|
@@ -91,7 +94,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="pxcx != null">#{pxcx},</if>
|
|
|
<if test="schoolClassTypeId != null">#{schoolClassTypeId},</if>
|
|
|
- <if test="coachId != null">#{coachId},</if>
|
|
|
+ <if test="coachnum != null">coachnum,</if>
|
|
|
+ <if test="status != null">status,</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -101,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null">name = #{name},</if>
|
|
|
<if test="sex != null">sex = #{sex},</if>
|
|
|
<if test="sfzmlx != null">sfzmlx = #{sfzmlx},</if>
|
|
|
- <if test="sfzmhm != null">sfzmhm = #{sfzmhm},</if>
|
|
|
+ <if test="idCard != null">idCard = #{idCard},</if>
|
|
|
<if test="crdate != null">crdate = #{crdate},</if>
|
|
|
<if test="birthday != null">birthday = #{birthday},</if>
|
|
|
<if test="mobile != null">mobile = #{mobile},</if>
|
|
@@ -113,7 +117,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="pxcx != null">pxcx = #{pxcx},</if>
|
|
|
<if test="schoolClassTypeId != null">#{schoolClassTypeId},</if>
|
|
|
- <if test="coachId != null">#{coachId},</if>
|
|
|
+ <if test="coachnum != null">coachnum,</if>
|
|
|
+ <if test="status != null">status,</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|