12345678910111213141516171819202122232425262728 |
- <?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.SellerMapper">
- <select id="getLoginSellerByMobile" resultType="com.caimei365.user.model.vo.UserLoginVo">
- select u.userID as userId,
- u.clubID as clubId,
- u.shopID as shopId,
- u.userName as userName,
- u.mobile as mobile,
- u.bindMobile as bindMobile,
- u.email as email,
- u.guideFlag as guideFlag,
- u.userPermission as userPermission,
- u.userIdentity as userIdentity,
- u.password as password
- from user u
- where
- u.mobile = #{mobile}
- and u.userIdentity = 1
- and u.userPermission = 4
- and u.validFlag = 1
- </select>
- <update id="updateServiceProviderByUserId">
- update serviceprovider
- set openid = #{openId}, unionId = #{unionId}
- where userID = #{userId}
- </update>
- </mapper>
|