|
@@ -20,10 +20,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="pxcx" column="pxcx" />
|
|
|
+ <result property="schoolClassTypeId" column="schoolClassTypeId" />
|
|
|
+ <result property="coachId" column="coachId" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectUserInfoVo">
|
|
|
- select id, name, sex, sfzmlx, sfzmhm, crdate, birthday, mobile, password, wechar, openid, inscode, create_time, update_time, pxcx from user_info
|
|
|
+ select id, name, sex, sfzmlx, sfzmhm, 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">
|
|
@@ -41,6 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="openid != null and openid != ''"> and openid = #{openid}</if>
|
|
|
<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>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -67,6 +71,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<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>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -84,6 +90,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="pxcx != null">#{pxcx},</if>
|
|
|
+ <if test="schoolClassTypeId != null">#{schoolClassTypeId},</if>
|
|
|
+ <if test="coachId != null">#{coachId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -104,6 +112,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<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>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|