From a943d1d297e5028824321a281258cda3686afd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=AE=8F=E6=96=8C?= <2164406372@qq.com> Date: Fri, 31 Oct 2025 13:10:51 +0800 Subject: [PATCH] 1 --- src/main/resources/mapper/pms/EamMapper.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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