Commit 6036e5f8 by zhengxj

finish 技工认证 on 20191018 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24349 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 99624581
......@@ -232,12 +232,19 @@
real_name = #{realName,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectByUserIdAndCheckStatus" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sys_mechanic
where user_id = #{userId,jdbcType=INTEGER}
and mechanic_status = #{mechanicStatus,jdbcType=VARCHAR}
</select>
<select id="selectByUserIdAndCheckStatus" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from sys_mechanic
<where>
<if test="userId != null">
and user_id = #{userId,jdbcType=INTEGER}
<if>
<if test="mechanicStatus != null">
and mechanic_status = #{mechanicStatus,jdbcType=VARCHAR}
<if>
</where>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!