| | |
| | | FROM t_agency_task tat |
| | | LEFT JOIN t_agency_task_record tmtr ON tat.task_id = tmtr.task_id |
| | | WHERE tat.del_flag = 0 AND tat.shop_id = #{param.shopId} AND tat.agency_id = #{param.agencyId} |
| | | <if test="param.taskStatus!=null and param.taskStatus == 0"> |
| | | AND tat.task_status = 0 AND tat.task_date < #{param.nowDay} |
| | | </if> |
| | | <if test="param.taskStatus!=null and param.taskStatus == 1"> |
| | | AND tat.task_status = 0 AND tat.task_date = #{param.nowDay} |
| | | </if> |
| | | <if test="param.taskStatus!=null and param.taskStatus == 2"> |
| | | AND tat.task_status = 2 |
| | | </if> |
| | | <if test="param.taskStatus!=null and param.taskStatus == 3"> |
| | | AND tat.task_status = 0 AND tat.task_date > #{param.nowDay} |
| | | <if test="param.taskStatus!=null"> |
| | | AND tat.task_status = #{param.taskStatus} |
| | | </if> |
| | | ORDER BY tat.task_date DESC |
| | | </select> |