|
@@ -110,7 +110,6 @@
|
|
|
LEFT JOIN t_b_user_archives_supplier us ON us.user_archives_id = ua.id
|
|
|
LEFT JOIN sys_supplier su ON su.id = us.supplier_id
|
|
|
<where>
|
|
|
- and r.lead_id IS NOT NULL
|
|
|
<!-- <if test="year != null and year != ''">-->
|
|
|
<!-- and YEAR ( FROM_UNIXTIME( s.start_time / 1000 ))= #{year}-->
|
|
|
<!-- </if>-->
|
|
@@ -233,7 +232,7 @@
|
|
|
LEFT JOIN t_b_user_archives_supplier us ON us.user_archives_id = ua.id
|
|
|
LEFT JOIN sys_supplier su ON su.id = us.supplier_id
|
|
|
<where>
|
|
|
- and tbs.`status`='PUBLISH' and a.service_id is not null and r.id is not null
|
|
|
+
|
|
|
<if test="serviceId != null and serviceId != ''">
|
|
|
and a.service_id = #{serviceId}
|
|
|
</if>
|
|
@@ -241,6 +240,7 @@
|
|
|
<!-- and r.id = #{regionId}-->
|
|
|
<!-- </if>-->
|
|
|
<if test="province != null and province != ''">
|
|
|
+ and tbs.`status`='PUBLISH' and a.service_id is not null and r.id is not null
|
|
|
and rd.province = #{province}
|
|
|
</if>
|
|
|
<if test="type != null and type != ''">
|
|
@@ -249,6 +249,9 @@
|
|
|
<if test="supplierId != null and supplierId != ''">
|
|
|
and su.id = #{supplierId}
|
|
|
</if>
|
|
|
+ <if test="supplierId == null or supplierId = ''">
|
|
|
+ and su.id is null
|
|
|
+ </if>
|
|
|
<!-- <if test="year != null and year != ''">-->
|
|
|
<!-- and YEAR ( FROM_UNIXTIME( tbs.start_time / 1000 ))= #{year}-->
|
|
|
<!-- </if>-->
|