|
|
@@ -47,26 +47,22 @@
|
|
|
<if test="teamId != null">
|
|
|
and team_id = #{teamId}
|
|
|
</if>
|
|
|
- <if test="teamName != null and teamName != ''">
|
|
|
- and team_name = #{teamName}
|
|
|
- </if>
|
|
|
- <if test="callSum != null">
|
|
|
- and call_sum = #{callSum}
|
|
|
+ <if test="quantityType !=null">
|
|
|
+ <if test="quantityType==1">
|
|
|
+ and valid_sum < 10
|
|
|
</if>
|
|
|
- <if test="connectSum != null">
|
|
|
- and connect_sum = #{connectSum}
|
|
|
- </if>
|
|
|
- <if test="validSum != null">
|
|
|
- and valid_sum = #{validSum}
|
|
|
+ <if test="quantityType==2">
|
|
|
+ and valid_sum >= 10 and valid_sum < 20
|
|
|
</if>
|
|
|
- <if test="callDurationSum != null">
|
|
|
- and call_duration_sum = #{callDurationSum}
|
|
|
+ <if test="quantityType==3">
|
|
|
+ and valid_sum >= 20 and valid_sum < 50
|
|
|
</if>
|
|
|
- <if test="dayDate != null">
|
|
|
- and day_date = #{dayDate}
|
|
|
+ <if test="quantityType==4">
|
|
|
+ and valid_sum >= 50
|
|
|
</if>
|
|
|
- <if test="createTime != null">
|
|
|
- and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null and endTime != null">
|
|
|
+ and day_date BETWEEN #{startTime} and #{endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
<if test="page_sql != null">
|
|
|
@@ -91,26 +87,8 @@
|
|
|
<if test="teamId != null">
|
|
|
and team_id = #{teamId}
|
|
|
</if>
|
|
|
- <if test="teamName != null and teamName != ''">
|
|
|
- and team_name = #{teamName}
|
|
|
- </if>
|
|
|
- <if test="callSum != null">
|
|
|
- and call_sum = #{callSum}
|
|
|
- </if>
|
|
|
- <if test="connectSum != null">
|
|
|
- and connect_sum = #{connectSum}
|
|
|
- </if>
|
|
|
- <if test="validSum != null">
|
|
|
- and valid_sum = #{validSum}
|
|
|
- </if>
|
|
|
- <if test="callDurationSum != null">
|
|
|
- and call_duration_sum = #{callDurationSum}
|
|
|
- </if>
|
|
|
- <if test="dayDate != null">
|
|
|
- and day_date = #{dayDate}
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- and create_time = #{createTime}
|
|
|
+ <if test="startTime != null and endTime != null">
|
|
|
+ and day_date BETWEEN #{startTime} and #{endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
@@ -246,5 +224,6 @@
|
|
|
and day_date BETWEEN #{startTime} and #{endTime}
|
|
|
group by aid
|
|
|
</select>
|
|
|
+
|
|
|
</mapper>
|
|
|
|