12345678910111213141516171819202122 |
- <?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.caimei365.user.mapper.BaseMapper">
- <select id="getUserIdByEmail" resultType="java.lang.Integer">
- select userID from user
- where email = #{mobile} and userIdentity in (1,2,3,4)
- limit 1
- </select>
- <select id="getUserIdByMobile" resultType="java.lang.Integer">
- select userID from user u
- left join cm_mall_operation_user cu on cu.userID = u.userID
- where (u.bindMobile = #{mobile}
- or (cu.mobile = #{mobile} and cu.delFlag != 1)
- ) and u.userIdentity in (1,2,3,4)
- limit 1
- </select>
- <select id="getOperationIdByMobile" resultType="java.lang.Integer">
- select id from cm_mall_operation_user
- where mobile = #{mobile} and delFlag = '0'
- limit 1
- </select>
- </mapper>
|