12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?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.ShopMapper">
- <update id="updateUserByUpdateInfo">
- update user set email = #{email},userName = #{userName},name = #{name}
- where userID = #{userId}
- </update>
- <update id="updateClubByUpdateInfo">
- update club set userID = #{userId}, name = #{name}, sname = #{sName}, contractEmail1 = #{contractEmail},
- <if test="contractPhone != null">
- contractPhone = #{contractPhone},
- </if>
- <if test="linkMan != null">
- linkMan = #{linkMan},
- </if>
- provinceID = #{provinceId}, cityID = #{cityId}, townID = #{townId}, address = #{address},
- <if test="shopPhoto != null and shopPhoto != 'null' and shopPhoto != ''">
- headpic = #{shopPhoto},
- </if>
- businessLicenseImage = #{businessLicense}, socialCreditCode = #{socialCreditCode}, firstClubType = #{firstClubType},
- <if test="firstClubType == 1">
- secondClubType = #{secondClubType}, department = #{department}, medicalPracticeLicenseImg = #{medicalPracticeLicense},
- </if>
- <if test="mainProduct != null">
- mainpro = #{mainProduct},
- </if>
- <if test="fax != null">
- fax = #{fax},
- </if>
- <if test="profile != null">
- info = #{profile},
- </if>
- lastModify = #{lastModifyTime}
- where clubID = #{clubId}
- </update>
- <select id="getShopCert" resultType="java.lang.String">
- SELECT image FROM shopcert WHERE shopID = #{shopId} AND shopCertTypeID = #{shopCertTypeId}
- </select>
- <select id="getShopById" resultType="com.caimei365.user.model.vo.ShopVo">
- select * from shop where shopID = #{shopId}
- </select>
- </mapper>
|