Browse Source

统计修改

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

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

@@ -1145,16 +1145,11 @@ select a.id,a.nickname as name,a.source,c.name contacts,c.mobile as contactMobil
 	and a.share_type = 0
 	and a.source=2
 	</if>
-	<if test="type!=2 and  type!=7">
-    <if test="startTime != null and endTime != null">
-	and  a.create_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR} 
-    </if>
-	</if>
-    <if test="type==2 or type==7">
-	<if test="startTime != null and endTime != null">
-	and  a.transfer_time  between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR} 
-    </if>
-    </if>
+     <if test="type!=5 and type!=6">
+       <if test="startTime != null and endTime != null">
+         and  a.transfer_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
+       </if>
+     </if>
    <if test="page_sql!=null">
 			${page_sql}
 	</if>
@@ -1200,14 +1195,9 @@ select a.id,a.nickname as name,a.source,c.name contacts,c.mobile as contactMobil
 	and a.share_type = 0
 	and a.source=2
 	</if>
-	<if test="type!=2 and  type!=7">
+    <if test="type!=5 and type!=6">
     <if test="startTime != null and endTime != null">
-	and  a.create_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR} 
-    </if>
-	</if>
-    <if test="type==2 or type==7">
-	<if test="startTime != null and endTime != null">
-	and  a.transfer_time  between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR} 
+	and  a.transfer_time between #{startTime,jdbcType=VARCHAR} and #{endTime,jdbcType=VARCHAR}
     </if>
     </if>
   </select>