Browse Source

任务管理 2022-10-13 sxm

master
[li_she] 3 years ago
parent
commit
98375f0747
  1. 10
      src/main/resources/mapper/taskmanage/TaskDatailDao.xml
  2. 3
      src/main/resources/mapper/taskmanage/TaskListDao.xml

10
src/main/resources/mapper/taskmanage/TaskDatailDao.xml

@ -18,7 +18,7 @@
select td.id
, tl.project
, tl.customer
, tl.task_initiator
, isnull(u2.username,tl.task_initiator) task_initiator
, tl.task_description
, td.department
, tl.required_completion_date
@ -36,6 +36,7 @@
from task_detail td
left join task_list tl on td.task_id = tl.id AND td.site = tl.site
left join users u on td.site = u.site and u.userId = td.responsible_person
left join users u2 on td.site = u.site and u.userId = tl.task_initiator
<where>
td.site = #{site}
<if test="department != null and department != ''">
@ -44,14 +45,17 @@
<if test="customer != null and customer != ''">
and tl.customer like #{customer}
</if>
<if test="project != null and project != ''">
and tl.project like #{project}
</if>
<if test="status != null and status != ''">
and tl.status = #{status}
and td.status = #{status}
</if>
<if test="finalStatus != null and finalStatus != ''">
and td.final_status = #{finalStatus}
</if>
<if test="responsiblePerson != null and responsiblePerson != ''">
and UPPER(td.responsible_person) like UPPER(#{responsiblePerson})
and UPPER(u.username) like UPPER(#{responsiblePerson})
</if>
<if test="startDate !=null ">
and tl.task_start_date <![CDATA[ >= ]]> #{startDate}

3
src/main/resources/mapper/taskmanage/TaskListDao.xml

@ -50,6 +50,9 @@
<if test="status != null and status != ''">
and status = #{status}
</if>
<if test="project != null and project != ''">
and project = #{project}
</if>
<if test="responsiblePerson != null and responsiblePerson != ''">
and responsible_person like #{responsiblePerson}
</if>

Loading…
Cancel
Save