|
@@ -130,7 +130,8 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getKuaiShouGroupMessageGroup" resultType="com.alibaba.fastjson.JSONObject" >
|
|
|
- SELECT DATE_FORMAT(t.create_time,'%Y-%m-%d') as 'statDate',COUNT(t.effective) as 'new',COUNT(IF(t.effective ='1', TRUE, NULL)) as 'valid' from ctop_new_monitor_group t where t.account_id in
|
|
|
+ SELECT DATE_FORMAT(t.create_time,'%Y-%m-%d') as 'statDate',COUNT(t.effective) as 'new',COUNT(IF(t.effective ='1', TRUE, NULL)) as 'valid' from ctop_new_monitor_group t
|
|
|
+ where (create_time between #{startDate} and #{endDate}) and t.account_id in
|
|
|
<foreach item="item" collection="array" separator="," open="(" close=")" index="">
|
|
|
#{item}
|
|
|
</foreach>
|
|
@@ -145,7 +146,8 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getPlanMessageGroup" resultType="com.alibaba.fastjson.JSONObject" >
|
|
|
- SELECT DATE_FORMAT(t.create_time,'%Y-%m-%d') as 'statDate',COUNT(t.effective) as 'new',COUNT(IF(t.effective ='1', TRUE, NULL)) as 'valid' from ctop_new_monitor_campaign t where project_type=#{project} and t.account_id in
|
|
|
+ SELECT DATE_FORMAT(t.create_time,'%Y-%m-%d') as 'statDate',COUNT(t.effective) as 'new',COUNT(IF(t.effective ='1', TRUE, NULL)) as 'valid' from ctop_new_monitor_campaign t
|
|
|
+ where project_type=#{project} and (create_time between #{startDate} and #{endDate}) and t.account_id in
|
|
|
<foreach item="item" collection="array" separator="," open="(" close=")" index="">
|
|
|
#{item}
|
|
|
</foreach>
|