소스 검색

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

anderx 1 년 전
부모
커밋
6eb8503ad8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}