| | |
| | | ORDER BY tat.task_date DESC |
| | | </select> |
| | | |
| | | <select id="pageMerAgencyTask" resultType="com.ruoyi.shop.domain.vo.MerAgencySimpleTaskRecordPageVo"> |
| | | SELECT |
| | | tmtr.create_time createTime, |
| | | CASE tmtr.follow_type WHEN 1 THEN "电话跟进" WHEN 2 THEN "手动跟进" END followType, |
| | | tmtr.follow_content followContent |
| | | 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} |
| | | AND tat.task_status = 2 |
| | | ORDER BY tmtr.create_time DESC |
| | | </select> |
| | | </mapper> |