Эх сурвалжийг харах

解决缺陷【ID1000219】
渠道管理 渠道的经销商数显示不对

Liugl 3 жил өмнө
parent
commit
73520e168e

+ 1 - 3
mp-service/src/main/resources/mapper/channel/ChannelMapper.xml

@@ -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>