Browse Source

部门客户统计修改及新增字段

anderx 1 year ago
parent
commit
6eb8503ad8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/goafanti/common/mapper/AdminMapper.xml

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

@@ -911,7 +911,7 @@
         sum(if(share_type=2,1,0))signCount from `user` where   type=1  and new_channel=0
         group by aid) b on a.id=b.aid
         left join (select aid, sum(if(share_type=0 and source in (1),1,0))inputCount,
-        sum(if(share_type=0 and source in (2),1,0))transferCount, sum(if(share_type=0 and source in (3),1,0))receiveCount
+        sum(if(share_type=0 and source in (3),1,0))transferCount, sum(if(share_type=0 and source in (2),1,0))receiveCount
         from `user` where   type=1  and new_channel=0
         <if test="startTime != null and endTime != null">
             and  transfer_time  between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}