<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.xzx.gc.user.mapper.JhyInfoMapper">
|
|
<select id="selectJhyInfoByMobile" resultType="com.xzx.gc.entity.JhyInfo">
|
select * from xzx_jhy_info where mobile=#{mobile}
|
</select>
|
|
<select id="selectJhyInfoByIdentity" resultType="com.xzx.gc.entity.JhyInfo">
|
select * from xzx_jhy_info where identity = #{identity}
|
</select>
|
|
<select id="selectJhyInfoByUserId" resultType="com.xzx.gc.entity.JhyInfo">
|
select * from xzx_jhy_info where user_id=#{userId}
|
</select>
|
|
<select id="selectExistJhyByIndeityOrMobile" resultType="com.xzx.gc.entity.JhyInfo">
|
select * from xzx_jhy_info where (mobile=#{mobile} or identity = #{identity}) and status in (1, 2)
|
</select>
|
</mapper>
|