|
@@ -297,6 +297,7 @@
|
|
left join sc_area sa2 on sc.city=sa2.id
|
|
left join sc_area sa2 on sc.city=sa2.id
|
|
left join sc_area sa3 on sc.region=sa3.id
|
|
left join sc_area sa3 on sc.region=sa3.id
|
|
where sc.status = 1
|
|
where sc.status = 1
|
|
|
|
+ <if test="param.siteId "> and sc.site_id = #{param.siteId} </if>
|
|
<if test="param.customerId != null and param.customerId != 0 "> and sc.customer_id = #{param.customerId} </if>
|
|
<if test="param.customerId != null and param.customerId != 0 "> and sc.customer_id = #{param.customerId} </if>
|
|
<if test="param.province != null"> and sc.province = #{param.province} </if>
|
|
<if test="param.province != null"> and sc.province = #{param.province} </if>
|
|
<if test="param.city != null"> and sc.city = #{param.city} </if>
|
|
<if test="param.city != null"> and sc.city = #{param.city} </if>
|
|
@@ -324,6 +325,7 @@
|
|
left join sc_area sa2 on sc.city=sa2.id
|
|
left join sc_area sa2 on sc.city=sa2.id
|
|
left join sc_area sa3 on sc.region=sa3.id
|
|
left join sc_area sa3 on sc.region=sa3.id
|
|
where sc.status = 1
|
|
where sc.status = 1
|
|
|
|
+ <if test="param.siteId != null"> and sc.site_id = #{param.siteId} </if>
|
|
<if test="param.customerId != null and param.customerId != 0 "> and sc.customer_id = #{param.customerId} </if>
|
|
<if test="param.customerId != null and param.customerId != 0 "> and sc.customer_id = #{param.customerId} </if>
|
|
<if test="param.province != null"> and sc.province = #{param.province} </if>
|
|
<if test="param.province != null"> and sc.province = #{param.province} </if>
|
|
<if test="param.city != null"> and sc.city = #{param.city} </if>
|
|
<if test="param.city != null"> and sc.city = #{param.city} </if>
|