SellerMapper.xml 1.0 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.caimei365.user.mapper.SellerMapper">
  4. <select id="getLoginSellerByMobile" resultType="com.caimei365.user.model.vo.UserLoginVo">
  5. select u.userID as userId,
  6. u.clubID as clubId,
  7. u.shopID as shopId,
  8. u.userName as userName,
  9. u.mobile as mobile,
  10. u.bindMobile as bindMobile,
  11. u.email as email,
  12. u.guideFlag as guideFlag,
  13. u.userPermission as userPermission,
  14. u.userIdentity as userIdentity,
  15. u.password as password
  16. from user u
  17. where
  18. u.mobile = #{mobile}
  19. and u.userIdentity = 1
  20. and u.userPermission = 4
  21. and u.validFlag = 1
  22. </select>
  23. <update id="updateServiceProviderByUserId">
  24. update serviceprovider
  25. set openid = #{openId}, unionId = #{unionId}
  26. where userID = #{userId}
  27. </update>
  28. </mapper>