Browse Source

统计BUG修复

anderx 4 years ago
parent
commit
fbf58d2a2b

+ 1 - 1
src/main/java/com/goafanti/common/mapper/OrganizationManagementMapper.xml

@@ -635,7 +635,7 @@
         from admin a left join (select x.aid,x.userCount,x.channelCount,signCount,x.newCount,x.channelNewCount,x.receiveCount,
         ifnull(y.completeCount,0)completeCount,ifnull(y.channelCompleteCount,0)channelCompleteCount
         from (select aid,sum(if( share_type=0 and channel=0,1,0))userCount,
-        sum(if(share_type=0 and  channel=1,1,0))channelCount,
+        sum(if(share_type=3 and  channel=1,1,0))channelCount,
         sum(if( share_type=2 ,1,0))signCount,
         sum(if(share_type=0 and source =1  and channel=0,1,0))newCount,
         sum(if(share_type=0 and source =1  and channel=1,1,0))channelNewCount,

+ 1 - 1
src/main/java/com/goafanti/common/mapper/UserBusinessMapper.xml

@@ -415,7 +415,7 @@
   <select id="selectFollowCountByUAid" parameterType="java.lang.String" resultType="java.lang.Integer">
   	select count(0) from user_follow where uid = #{uid,jdbcType=VARCHAR}
   	<if test="aid !=null">
-=   and aid = #{aid,jdbcType=VARCHAR}
+   and aid = #{aid,jdbcType=VARCHAR}
     </if>
   </select>