Explorar o código

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

anderx hai 1 ano
pai
achega
6eb8503ad8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}