|
@@ -102,8 +102,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findClubs" resultType="com.caimei365.user.model.vo.ClubVo">
|
|
<select id="findClubs" resultType="com.caimei365.user.model.vo.ClubVo">
|
|
- select c.clubID as clubId, c.userID as userId, c.name, c.sname as shortName, c.contractMobile, c.contractEmail1
|
|
|
|
- as contractEmail,
|
|
|
|
|
|
+ select c.clubID as clubId, c.userID as userId, c.name, c.sname as shortName, c.contractMobile, c.contractEmail1 as contractEmail,
|
|
c.contractPhone, c.linkMan, c.provinceID as proviceId, c.cityID as cityId, c.townID as townId,
|
|
c.contractPhone, c.linkMan, c.provinceID as proviceId, c.cityID as cityId, c.townID as townId,
|
|
c.address, c.headpic as shopPhoto, c.businessLicenseImage as businessLicense, c.socialCreditCode,
|
|
c.address, c.headpic as shopPhoto, c.businessLicenseImage as businessLicense, c.socialCreditCode,
|
|
c.firstClubType, c.secondClubType, c.department, c.medicalPracticeLicenseImg as medicalPracticeLicense,
|
|
c.firstClubType, c.secondClubType, c.department, c.medicalPracticeLicenseImg as medicalPracticeLicense,
|
|
@@ -126,4 +125,28 @@
|
|
</if>
|
|
</if>
|
|
order by c.clubID desc
|
|
order by c.clubID desc
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="getAllClubList" resultType="com.caimei365.user.model.vo.ClubVo">
|
|
|
|
+ SELECT c.clubID as clubId, c.userID as userId, c.name, c.sname as shortName, c.contractMobile, c.contractEmail1 as contractEmail,
|
|
|
|
+ c.contractPhone, c.linkMan, c.provinceID as proviceId, c.cityID as cityId, c.townID as townId,
|
|
|
|
+ c.address, c.headpic as shopPhoto, c.businessLicenseImage as businessLicense, c.socialCreditCode,
|
|
|
|
+ c.firstClubType, c.secondClubType, c.department, c.medicalPracticeLicenseImg as medicalPracticeLicense,
|
|
|
|
+ c.mainpro as mainProduct, c.fax, c.info as profile, c.spID as serviceProviderId, c.addTime, c.status,
|
|
|
|
+ u.userIdentity
|
|
|
|
+ FROM club c
|
|
|
|
+ LEFT JOIN user u ON c.userID=u.userID
|
|
|
|
+ WHERE u.userOrganizeID = 0 AND c.status = '90'
|
|
|
|
+ <if test="searchWord != null and searchWord != ''">
|
|
|
|
+ and (
|
|
|
|
+ c.name LIKE CONCAT('%',#{searchWord},'%') or
|
|
|
|
+ c.linkMan1 LIKE CONCAT('%',#{searchWord},'%') or
|
|
|
|
+ c.contractMobile1 LIKE CONCAT('%',#{searchWord},'%')
|
|
|
|
+ )
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
|
|
+ <select id="getSellerByUserId" resultType="com.caimei365.user.model.po.ServiceProviderPo">
|
|
|
|
+ select serviceProviderID AS serviceProviderId, status, userID AS userId, openid, unionId, name, contractMobile,
|
|
|
|
+ linkMan1, duty1, contractMobile1, auditStatus, auditTime, auditNote, validFlag, addTime,
|
|
|
|
+ mainServiceProviderID AS mainServiceProviderId
|
|
|
|
+ from serviceprovider where userID = #{userId}
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|