|
@@ -756,7 +756,7 @@
|
|
|
<if test="justWaitForMe !=null ">
|
|
|
and (task.check_first_id=#{creatorId} or task.check_second_id=#{creatorId}) and (task.task_status=3 or task.task_status=4)
|
|
|
</if>
|
|
|
- and ((IFNULL(task.start_date , task.end_date) between #{startDate} and #{endDate}) or (task.end_date between #{startDate} and #{endDate}))
|
|
|
+ and ((IFNULL(task.start_date , task.end_date) <= #{endDate}) and (task.end_date >= #{startDate}))
|
|
|
and task.end_date is not null and task.is_task_plan =0
|
|
|
AND project.`status` = 1
|
|
|
ORDER BY user.id, task.start_date
|
|
@@ -787,7 +787,7 @@
|
|
|
<if test="justWaitForMe !=null ">
|
|
|
and (task.check_first_id=#{creatorId} or task.check_second_id=#{creatorId}) and (task.task_status=3 or task.task_status=4)
|
|
|
</if>
|
|
|
- and ((IFNULL(task.start_date , task.end_date) between #{startDate} and #{endDate}) or (task.end_date between #{startDate} and #{endDate}))
|
|
|
+ and ((IFNULL(task.start_date , task.end_date) <= #{endDate}) and (task.end_date >= #{startDate}))
|
|
|
and task.end_date is not null and task.task_plan =0
|
|
|
AND project.`status` = 1
|
|
|
ORDER BY project.id, task.start_date
|
|
@@ -2746,7 +2746,7 @@
|
|
|
<foreach collection="userIds" close=")" open="(" separator="," index="" item="item">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
- and ((IFNULL(task.start_date , task.end_date) between #{startDate} and #{endDate}) or (task.end_date between #{startDate} and #{endDate}))
|
|
|
+ and ((IFNULL(task.start_date , task.end_date) <= #{endDate}) and (task.end_date >= #{startDate}))
|
|
|
and task.end_date is not null
|
|
|
<if test="targetUserId !=null and targetUserId !='' ">
|
|
|
and user.`id`=#{targetUserId}
|
|
@@ -2766,7 +2766,7 @@
|
|
|
LEFT JOIN task_executor ON user.id = task_executor.`executor_id`
|
|
|
left join task on task.id = task_executor.task_id
|
|
|
WHERE
|
|
|
- ((IFNULL(task.start_date , task.end_date) between #{startDate} and #{endDate}) or (task.end_date between #{startDate} and #{endDate}))
|
|
|
+ and ((IFNULL(task.start_date , task.end_date) <= #{endDate}) and (task.end_date >= #{startDate}))
|
|
|
and task.end_date is not null and task.task_plan_type=3 and task.task_plan=1
|
|
|
<if test="targetUserId !=null and targetUserId !='' ">
|
|
|
and user.`id`=#{targetUserId}
|
|
@@ -2786,7 +2786,7 @@
|
|
|
<foreach collection="userIds" close=")" open="(" separator="," index="" item="item">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
- and ((IFNULL(task.start_date , task.end_date) between #{startDate} and #{endDate}) or (task.end_date between #{startDate} and #{endDate}))
|
|
|
+ and ((IFNULL(task.start_date , task.end_date) <= #{endDate}) and (task.end_date >= #{startDate}))
|
|
|
and task.end_date is not null and task.is_task_plan=1 and task.check_first_id=#{managerId}
|
|
|
AND project.`status` = 1 and task.task_plan=1 and task.task_status !=2
|
|
|
<if test="targetUserId !=null and targetUserId !='' ">
|
|
@@ -2810,7 +2810,7 @@
|
|
|
<foreach collection="userIds" close=")" open="(" separator="," index="" item="item">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
- and ((IFNULL(task.start_date , task.end_date) between #{startDate} and #{endDate}) or (task.end_date between #{startDate} and #{endDate}))
|
|
|
+ and ((IFNULL(task.start_date , task.end_date) <= #{endDate}) and (task.end_date >= #{startDate}))
|
|
|
and task.end_date is not null and task.check_second_id=#{managerId}
|
|
|
AND project.`status` = 1 and task.task_plan=1 and task.task_status !=2
|
|
|
<if test="targetUserId !=null and targetUserId !='' ">
|
|
@@ -2849,7 +2849,7 @@
|
|
|
<if test="justWaitForMe !=null">
|
|
|
and (task.check_first_id=#{creatorId} or task.check_second_id=#{creatorId}) and (task.task_status=3 or task.task_status=4)
|
|
|
</if>
|
|
|
- and ((IFNULL(task.start_date , task.end_date) between #{startDate} and #{endDate}) or (task.end_date between #{startDate} and #{endDate}))
|
|
|
+ and ((IFNULL(task.start_date , task.end_date) <= #{endDate}) and (task.end_date >= #{startDate}))
|
|
|
and task.end_date is not null
|
|
|
AND project.`status` = 1
|
|
|
ORDER BY project.id, task.start_date
|
|
@@ -2882,7 +2882,7 @@
|
|
|
<if test="justWaitForMe !=null">
|
|
|
and task.task_status=3
|
|
|
</if>
|
|
|
- and ((IFNULL(task.start_date , task.end_date) between #{startDate} and #{endDate}) or (task.end_date between #{startDate} and #{endDate}))
|
|
|
+ and ((IFNULL(task.start_date , task.end_date) <= #{endDate}) and (task.end_date >= #{startDate}))
|
|
|
and task.end_date is not null and task.is_task_plan=1 and task.check_first_id=#{managerId} and task.task_status !=2
|
|
|
AND project.`status` = 1
|
|
|
ORDER BY project.id, task.start_date
|
|
@@ -2915,7 +2915,7 @@
|
|
|
<if test="justWaitForMe !=null">
|
|
|
and task.task_status=4
|
|
|
</if>
|
|
|
- and ((IFNULL(task.start_date , task.end_date) between #{startDate} and #{endDate}) or (task.end_date between #{startDate} and #{endDate}))
|
|
|
+ and ((IFNULL(task.start_date , task.end_date) <= #{endDate}) and (task.end_date >= #{startDate}))
|
|
|
and task.end_date is not null and task.task_plan=1 and task.check_second_id=#{managerId}
|
|
|
AND project.`status` = 1 and task.task_status !=2
|
|
|
ORDER BY project.id, task.start_date
|