|
@@ -50,9 +50,7 @@
|
|
<select id="getChannelSiteCnt" resultType="integer">
|
|
<select id="getChannelSiteCnt" resultType="integer">
|
|
select count(t1.channel_id) as siteCnt
|
|
select count(t1.channel_id) as siteCnt
|
|
from mp_channel t1
|
|
from mp_channel t1
|
|
- left join mp_channel t2 on t1.parent_id = t2.channel_id
|
|
|
|
- where t1.`level`= 0
|
|
|
|
- and t2.channel_no like concat(#{channelNo}, '.%')
|
|
|
|
|
|
+ where t1.`level`= 0 and t1.channel_no like concat(#{channelNo}, '.%')
|
|
</select>
|
|
</select>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|