|
@@ -99,9 +99,9 @@
|
|
<include refid="otherColumns"/>,u.userPermission,u.source, covs.activeState,covs.customerValue
|
|
<include refid="otherColumns"/>,u.userPermission,u.source, covs.activeState,covs.customerValue
|
|
FROM club a
|
|
FROM club a
|
|
<include refid="newCmClubJoins"/>
|
|
<include refid="newCmClubJoins"/>
|
|
- left join cm_organ_value_system covs on a.userID = covs.userID
|
|
|
|
|
|
+ LEFT JOIN (SELECT userID, activeState, customerValue FROM cm_organ_value_system WHERE stage = 0 AND delType = 1) covs ON a.userID = covs.userID
|
|
<where>
|
|
<where>
|
|
- covs.stage = 0 AND covs.delType = 1
|
|
|
|
|
|
+ (u.userOrganizeID IN(0,1) or u.clubStatus != 92)
|
|
<if test="clubID != null and clubID != ''">
|
|
<if test="clubID != null and clubID != ''">
|
|
AND a.clubID = #{clubID}
|
|
AND a.clubID = #{clubID}
|
|
</if>
|
|
</if>
|
|
@@ -162,7 +162,10 @@
|
|
<if test="customerValue != null and customerValue != ''">
|
|
<if test="customerValue != null and customerValue != ''">
|
|
AND covs.customerValue = #{customerValue}
|
|
AND covs.customerValue = #{customerValue}
|
|
</if>
|
|
</if>
|
|
- AND (u.userOrganizeID IN(0,1) or u.clubStatus != 92)
|
|
|
|
|
|
+ <if test="spID != null and spID != ''">
|
|
|
|
+ AND sp.serviceProviderID = #{spID}
|
|
|
|
+ </if>
|
|
|
|
+
|
|
</where>
|
|
</where>
|
|
<choose>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
@@ -173,7 +176,9 @@
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+ <select id="spNameList" resultType="com.caimei.modules.project.model.ServiceProviderModel">
|
|
|
|
+ SELECT serviceProviderID,name FROM serviceprovider WHERE NAME NOT LIKE concat('%','测试','%') AND validFlag = 1
|
|
|
|
+ </select>
|
|
<select id="findAllList" resultType="NewCmClub">
|
|
<select id="findAllList" resultType="NewCmClub">
|
|
SELECT
|
|
SELECT
|
|
<include refid="newCmClubColumns"/>
|
|
<include refid="newCmClubColumns"/>
|