|
|
@@ -32,48 +32,13 @@
|
|
|
<select id="findAdminCallDayList" resultMap="AdminCallDayMap">
|
|
|
select
|
|
|
<include refid="AdminCallDayAllSql"/>
|
|
|
-
|
|
|
from admin_call_day
|
|
|
- <where>
|
|
|
- <if test="id != null">
|
|
|
- and id = #{id}
|
|
|
- </if>
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and name like concat('%',#{name},'%')
|
|
|
- </if>
|
|
|
- <if test="aid != null and aid != ''">
|
|
|
- and aid = #{aid}
|
|
|
- </if>
|
|
|
- <if test="teamId != null">
|
|
|
- and team_id = #{teamId}
|
|
|
- </if>
|
|
|
- <if test="quantityType !=null">
|
|
|
- <if test="quantityType==1">
|
|
|
- and valid_sum < 10
|
|
|
- </if>
|
|
|
- <if test="quantityType==2">
|
|
|
- and valid_sum >= 10 and valid_sum < 20
|
|
|
- </if>
|
|
|
- <if test="quantityType==3">
|
|
|
- and valid_sum >= 20 and valid_sum < 50
|
|
|
- </if>
|
|
|
- <if test="quantityType==4">
|
|
|
- and valid_sum >= 50
|
|
|
- </if>
|
|
|
- </if>
|
|
|
- <if test="startTime != null and endTime != null">
|
|
|
- and day_date BETWEEN #{startTime} and #{endTime}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
+ <include refid="AdminCallDayListSql"/>
|
|
|
<if test="page_sql != null">
|
|
|
${page_sql}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
- <!--统计总行数-->
|
|
|
- <select id="findAdminCallDayCount" resultType="java.lang.Integer">
|
|
|
- select count(1)
|
|
|
- from admin_call_day
|
|
|
+ <sql id="AdminCallDayListSql">
|
|
|
<where>
|
|
|
<if test="id != null">
|
|
|
and id = #{id}
|
|
|
@@ -84,8 +49,11 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
and aid = #{aid}
|
|
|
</if>
|
|
|
- <if test="teamId != null">
|
|
|
- and team_id = #{teamId}
|
|
|
+ <if test="teamIdList != null">
|
|
|
+ and team_id in
|
|
|
+ <foreach collection="teamIdList" item="teamId" open="(" close=")" separator=",">
|
|
|
+ #{teamId}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="quantityType !=null">
|
|
|
<if test="quantityType==1">
|
|
|
@@ -105,6 +73,14 @@
|
|
|
and day_date BETWEEN #{startTime} and #{endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
+ </sql>
|
|
|
+
|
|
|
+
|
|
|
+ <!--统计总行数-->
|
|
|
+ <select id="findAdminCallDayCount" resultType="java.lang.Integer">
|
|
|
+ select count(1)
|
|
|
+ from admin_call_day
|
|
|
+ <include refid="AdminCallDayListSql"/>
|
|
|
</select>
|
|
|
|
|
|
|