| | |
| | | and ct."task_status" = #{callTask.taskStatus} |
| | | </if> |
| | | <if test="callTask.startTime!=null and callTask.startTime!=''"> |
| | | and date_format(ct."gmt_create",'%Y-%m-%d') >= #{callTask.startTime} |
| | | and date_format(ct."task_schedule_time",'%Y-%m-%d') >= #{callTask.startTime} |
| | | </if> |
| | | <if test="callTask.endTime!=null and callTask.endTime!=''"> |
| | | and date_format(ct."gmt_create",'%Y-%m-%d') <= #{callTask.endTime} |
| | | and date_format(ct."task_schedule_time",'%Y-%m-%d') <= #{callTask.endTime} |
| | | </if> |
| | | order by ct."gmt_create" desc |
| | | </select> |
| | |
| | | GROUP BY ctra."call_id" |
| | | ) cas |
| | | on cas."call_id" = ctr."call_id" |
| | | left join "SJZT_ODS"."call_task" ct on ct."id" = ctr."task_id" |
| | | where 1=1 |
| | | <if test="callTaskResult.taskId!=null and callTaskResult.taskId!=''"> |
| | | and ctr."task_id" = #{callTaskResult.taskId} |
| | |
| | | <if test="callTaskResult.userName!=null and callTaskResult.userName!=''"> |
| | | and ctc.userName like concat('%',#{callTaskResult.userName},'%') |
| | | </if> |
| | | <if test="callTaskResult.taskName!=null and callTaskResult.taskName!=''"> |
| | | and ct."task_name" like concat(concat('%',#{callTaskResult.taskName}),'%') |
| | | </if> |
| | | <if test="callTaskResult.taskStatus!=null"> |
| | | and ct."task_status" = #{callTaskResult.taskStatus} |
| | | </if> |
| | | <if test="callTaskResult.startTime!=null and callTaskResult.startTime!=''"> |
| | | and date_format(ctr."gmt_create",'%Y-%m-%d') >= #{callTaskResult.startTime} |
| | | </if> |