Browse Source

统计BUG修复

anderx 4 years ago
parent
commit
ffd9e6aa15
1 changed files with 13 additions and 7 deletions
  1. 13 7
      src/main/java/com/goafanti/common/mapper/AdminMapper.xml

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

@@ -1127,9 +1127,12 @@
 	<if test="type == 5 or type ==6">
 	and e.aid=  #{aid,jdbcType=VARCHAR}
 	</if>
-	  <if test="type == 0 or type == 1">
-    and  a.share_type = 0
-    </if>
+     <if test="type == 0">
+       and  a.share_type = 0
+     </if>
+     <if test="type == 1">
+       and  a.share_type = 3
+     </if>
     <if test="type ==0  or type==3 or type==5 or type==7">
 	 and a.channel=0 
     </if>
@@ -1137,7 +1140,7 @@
 	 and a.channel=1 
     </if> 
     <if test="type == 2">
-    and a.share_type=3
+    and a.share_type=2
     </if> 
 	<if test="type == 3 or type==4">
 	and a.source=1
@@ -1175,8 +1178,11 @@
 	<if test="type == 5 or type ==6">
 	and e.aid=  #{aid,jdbcType=VARCHAR}
 	</if>
-	  <if test="type == 0 or type == 1">
-    and  a.share_type = 0
+    <if test="type == 0">
+      and  a.share_type = 0
+    </if>
+    <if test="type == 1">
+      and  a.share_type = 3
     </if>
     <if test="type ==0  or type==3 or type==5 or type==7">
       and a.channel=0
@@ -1185,7 +1191,7 @@
 	 and a.channel=1 
     </if> 
     <if test="type == 2">
-    and a.share_type=3
+    and a.share_type=2
     </if> 
 	<if test="type == 3 or type==4">
 	and a.source=1