diff --git a/src/main/resources/mapper/pms/EamMapper.xml b/src/main/resources/mapper/pms/EamMapper.xml index ab35fc79..6171da60 100644 --- a/src/main/resources/mapper/pms/EamMapper.xml +++ b/src/main/resources/mapper/pms/EamMapper.xml @@ -732,7 +732,6 @@ a.checker, a.ActualOperator, a.PlanDate, - a.PlanDate as taskStartDate, a.ActualDate, a.FunctionType, a.CreateDate, @@ -769,7 +768,11 @@ a.check_type, a.is_return, ewo.plan_period, - ewo.plan_cycle + ewo.plan_cycle, + CASE + when ewo.plan_cycle = '时' then a.PlanDate + else ewo.task_start_date + end as taskStartDate FROM eam_workOrder a left join eam_object as eo on eo.site = a.site and eo.ObjectID = a.ObjectID and eo.bu_no = a.bu_no left join sys_department as sd ON eo.site = sd.site and eo.dept_id = sd.department_id and eo.bu_no = sd.bu_no