You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
747 B
27 lines
747 B
<?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.ccsens.delivery.persist.dao.SysAuthDao">
|
|
|
|
<select id="getByPhone" resultType="com.ccsens.delivery.bean.po.SysAuth">
|
|
SELECT
|
|
*
|
|
FROM
|
|
t_sys_auth
|
|
WHERE
|
|
identify_type = 1
|
|
and identifier = #{phone}
|
|
and rec_status = 0
|
|
limit 1
|
|
</select>
|
|
<select id="getPhoneByUserId" resultType="java.lang.String">
|
|
SELECT
|
|
identifier
|
|
FROM
|
|
t_sys_auth
|
|
WHERE
|
|
identify_type = 1
|
|
and user_id = #{userId}
|
|
and rec_status = 0
|
|
limit 1
|
|
</select>
|
|
</mapper>
|