|
@@ -33,7 +33,7 @@
|
33
|
33
|
LEFT JOIN xlk_institution i ON t.institution_id = i.institution_id
|
34
|
34
|
WHERE
|
35
|
35
|
t.org_id = #{params.orgId}
|
36
|
|
- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')
|
|
36
|
+<!-- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')-->
|
37
|
37
|
</select>
|
38
|
38
|
<select id="selectEstateAgentNum" resultType="java.lang.Integer">
|
39
|
39
|
SELECT
|
|
@@ -82,7 +82,7 @@
|
82
|
82
|
<if test="params.endTime != null">
|
83
|
83
|
and TO_DAYS(b.create_date) <= TO_DAYS(#{params.endTime})
|
84
|
84
|
</if>
|
85
|
|
- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')
|
|
85
|
+<!-- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')-->
|
86
|
86
|
GROUP BY b.building_id
|
87
|
87
|
ORDER BY num desc
|
88
|
88
|
LIMIT 6
|
|
@@ -112,7 +112,7 @@
|
112
|
112
|
<if test="params.endTime != null">
|
113
|
113
|
and TO_DAYS(b.create_date) <= TO_DAYS(#{params.endTime})
|
114
|
114
|
</if>
|
115
|
|
- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')
|
|
115
|
+<!-- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')-->
|
116
|
116
|
GROUP BY b.building_id
|
117
|
117
|
ORDER BY num desc
|
118
|
118
|
LIMIT 6
|
|
@@ -139,7 +139,7 @@
|
139
|
139
|
<if test="params.endTime != null">
|
140
|
140
|
and TO_DAYS(a.create_date) <= TO_DAYS(#{params.endTime})
|
141
|
141
|
</if>
|
142
|
|
- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')
|
|
142
|
+<!-- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')-->
|
143
|
143
|
GROUP BY
|
144
|
144
|
a.be_uv
|
145
|
145
|
ORDER BY
|
|
@@ -169,7 +169,7 @@
|
169
|
169
|
<if test="params.endTime != null">
|
170
|
170
|
and TO_DAYS(b.create_date) <= TO_DAYS(#{params.endTime})
|
171
|
171
|
</if>
|
172
|
|
- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')
|
|
172
|
+<!-- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')-->
|
173
|
173
|
GROUP BY b.building_id
|
174
|
174
|
ORDER BY num desc
|
175
|
175
|
LIMIT 6
|
|
@@ -211,7 +211,7 @@
|
211
|
211
|
a.target_id
|
212
|
212
|
) v ON t.dynamic_id = v.target_id
|
213
|
213
|
LEFT JOIN ( SELECT COUNT( 1 ) AS sign_num, dynamic_id FROM ta_activity_dynamic_enlist GROUP BY dynamic_id ) d ON t.dynamic_id = d.dynamic_id
|
214
|
|
- LEFT JOIN xlk_institution i ON b.institution_id = i.institution_id
|
|
214
|
+ LEFT JOIN xlk_institution i ON t.institution_id = i.institution_id
|
215
|
215
|
where
|
216
|
216
|
t.org_id = #{params.orgId}
|
217
|
217
|
<if test="params.startTime != null">
|
|
@@ -223,7 +223,7 @@
|
223
|
223
|
<if test="params.buildingId != null and params.buildingId != ''">
|
224
|
224
|
and t.building_id = #{params.buildingId}
|
225
|
225
|
</if>
|
226
|
|
- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')
|
|
226
|
+<!-- AND i.institution_code like CONCAT(#{params.institutionCode}, '%')-->
|
227
|
227
|
order by t.create_date desc
|
228
|
228
|
</select>
|
229
|
229
|
</mapper>
|