Commit dcda21a8 authored by 耿迪迪's avatar 耿迪迪

获取最新任务接口修改

parent 608d8caa
......@@ -155,12 +155,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM
t_task task
LEFT JOIN sys_user us ON us.user_id = task.admin_id
LEFT JOIN t_task_relation_info relation ON relation.task_id = task.id AND relation.type = '2'
LEFT JOIN t_group_member_info gr ON gr.group_id = relation.relation_id
<where>
task.status = 0
<if test="type != null">AND task.type = #{ type }</if>
<if test="checkType != null">AND task.check_type = #{ checkType }</if>
<if test="taskType != null and taskType != ''">AND task.task_type = #{ taskType }</if>
<if test="userId != null">AND gr.user_id = #{ userId }</if>
</where>
GROUP BY task.id
ORDER BY create_time DESC
LIMIT 1
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment