|
@@ -5,6 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<mapper namespace="com.miaxis.coach.mapper.CoachInfoMapper">
|
|
<mapper namespace="com.miaxis.coach.mapper.CoachInfoMapper">
|
|
|
|
|
|
<resultMap type="CoachInfo" id="CoachInfoResult">
|
|
<resultMap type="CoachInfo" id="CoachInfoResult">
|
|
|
|
+ <result property="id" column="id" />
|
|
<result property="coachnum" column="coachnum" />
|
|
<result property="coachnum" column="coachnum" />
|
|
<result property="name" column="name" />
|
|
<result property="name" column="name" />
|
|
<result property="sex" column="sex" />
|
|
<result property="sex" column="sex" />
|
|
@@ -23,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="fabulous" column="fabulous" />
|
|
<result property="fabulous" column="fabulous" />
|
|
|
|
+ <result property="password" column="password" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectCoachInfoUrlList" parameterType="com.miaxis.coach.dto.CoachInfoDTO" resultType="com.miaxis.coach.dto.CoachInfoVO">
|
|
<select id="selectCoachInfoUrlList" parameterType="com.miaxis.coach.dto.CoachInfoDTO" resultType="com.miaxis.coach.dto.CoachInfoVO">
|
|
@@ -46,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<sql id="selectCoachInfoVo">
|
|
<sql id="selectCoachInfoVo">
|
|
- select coachnum, name, sex, inscode, idcard, mobile, address, photo, dripermitted, teachpermitted, district, employstatus, stop_train, wechar, openid, create_time, update_time, fabulous from coach_info
|
|
|
|
|
|
+ select id,coachnum, name, sex, inscode, idcard, mobile, address, photo, dripermitted, teachpermitted, district, employstatus, stop_train, wechar, openid, create_time, update_time, fabulous,password from coach_info
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectCoachInfoList" parameterType="CoachInfo" resultMap="CoachInfoResult">
|
|
<select id="selectCoachInfoList" parameterType="CoachInfo" resultMap="CoachInfoResult">
|
|
@@ -143,9 +145,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where coachnum = #{coachnum}
|
|
where coachnum = #{coachnum}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
- <delete id="deleteCoachInfoById" parameterType="String">
|
|
|
|
- delete from coach_info where coachnum = #{coachnum}
|
|
|
|
- </delete>
|
|
|
|
|
|
|
|
<delete id="deleteCoachInfoByIds" parameterType="String">
|
|
<delete id="deleteCoachInfoByIds" parameterType="String">
|
|
delete from coach_info where coachnum in
|
|
delete from coach_info where coachnum in
|
|
@@ -156,9 +155,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="queryList" resultType="com.miaxis.coach.vo.CoachInfoPcVO">
|
|
<select id="queryList" resultType="com.miaxis.coach.vo.CoachInfoPcVO">
|
|
SELECT
|
|
SELECT
|
|
|
|
+ ci.`id`,
|
|
ci.`coachnum`,
|
|
ci.`coachnum`,
|
|
ci.`name`,
|
|
ci.`name`,
|
|
- (CASE WHEN ci.sex = '1' THEN '男' WHEN ci.sex = '2' THEN '女' ELSE '未知' END ) AS sex,
|
|
|
|
|
|
+ ci.`sex`,
|
|
ci.`inscode`,
|
|
ci.`inscode`,
|
|
ci.`idcard`,
|
|
ci.`idcard`,
|
|
ci.`mobile`
|
|
ci.`mobile`
|
|
@@ -171,5 +171,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <!--密码重置-->
|
|
|
|
+ <update id="resetPassword">
|
|
|
|
+ UPDATE
|
|
|
|
+ coach_info ci
|
|
|
|
+ SET password = #{password}
|
|
|
|
+ <where>
|
|
|
|
+ and ci.coachnum in
|
|
|
|
+ <foreach collection="coachnums" item="coachnum" open="(" close=")" separator=",">
|
|
|
|
+ (#{coachnum})
|
|
|
|
+ </foreach>
|
|
|
|
+ </where>
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|