123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?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.name as name,
- 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>
- <select id="findClubTemporary" resultType="com.caimei365.user.model.vo.ClubTemporaryVo">
- SELECT
- `id`,
- `userId`,
- `name`,
- `shortName`,
- `bindMobile`,
- `contractEmail`,
- `linkMan`,
- `provinceId`,
- `cityId`,
- `townId`,
- `address`,
- `shopPhoto`,
- `businessLicense`,
- `socialCreditCode`,
- `firstClubType`,
- `secondClubType`,
- `department`,
- `medicalPracticeLicense`,
- `mainProduct`,
- `isAgreed`
- FROM
- club_temporary
- WHERE
- userId = #{userId}
- <if test="searchName != null and searchName != ''">
- AND (name LIKE CONCAT('%',#{searchName},'%') OR linkMan LIKE CONCAT('%',#{searchName},'%'))
- </if>
- ORDER BY
- id DESC
- </select>
- <update id="updateClubTemporary">
- UPDATE
- `club_temporary`
- SET
- `name` = #{name},
- `shortName` = #{shortName},
- `bindMobile` = #{bindMobile},
- `contractEmail` = #{contractEmail},
- `linkMan` = #{linkMan},
- `provinceId` = #{provinceId},
- `cityId` = #{cityId},
- `townId` = #{townId},
- `address` = #{address},
- `shopPhoto` = #{shopPhoto},
- `businessLicense` = #{businessLicense},
- `socialCreditCode` = #{socialCreditCode},
- `firstClubType` = #{firstClubType},
- `secondClubType` = #{secondClubType},
- `department` = #{department},
- `medicalPracticeLicense` = #{medicalPracticeLicense},
- `mainProduct` = #{mainProduct},
- `isAgreed` = #{isAgreed}
- WHERE `id` = #{id}
- </update>
- <delete id="deleteTemporaryClub">
- DELETE FROM `club_temporary` WHERE `id` = #{id}
- </delete>
- </mapper>
|