|
@@ -87,6 +87,7 @@
|
|
from site_grouping as a
|
|
from site_grouping as a
|
|
left join site as b on a.id = b.grouping_id
|
|
left join site as b on a.id = b.grouping_id
|
|
<where>
|
|
<where>
|
|
|
|
+ b.enable=1
|
|
<if test="name != null and name != ''">
|
|
<if test="name != null and name != ''">
|
|
and b.site_name like CONCAT(CONCAT('%', #{name}), '%')
|
|
and b.site_name like CONCAT(CONCAT('%', #{name}), '%')
|
|
</if>
|
|
</if>
|
|
@@ -171,6 +172,7 @@
|
|
site AS a
|
|
site AS a
|
|
left join site_dynamic_properties as b on a.id = b.site_id
|
|
left join site_dynamic_properties as b on a.id = b.site_id
|
|
<where>
|
|
<where>
|
|
|
|
+ a.enable=1
|
|
<if test="id != null and id != 0">
|
|
<if test="id != null and id != 0">
|
|
and a.id = #{id}
|
|
and a.id = #{id}
|
|
</if>
|
|
</if>
|
|
@@ -180,6 +182,7 @@
|
|
select *
|
|
select *
|
|
from site
|
|
from site
|
|
<where>
|
|
<where>
|
|
|
|
+ enable=1
|
|
<if test="id != null and id != 0">
|
|
<if test="id != null and id != 0">
|
|
and id = #{id}
|
|
and id = #{id}
|
|
</if>
|
|
</if>
|