From 41fdd36997c2c9d28883bd81f6543b2d3a691cb2 Mon Sep 17 00:00:00 2001 From: Mlin Date: Tue, 14 Feb 2023 18:06:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=8F=E8=A7=86=E5=9B=BE=E5=9C=A8=E5=B2=97?= =?UTF-8?q?=E6=95=B0bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../engine/organization/mapper/jclorgmap/JclOrgMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/engine/organization/mapper/jclorgmap/JclOrgMapper.xml b/src/com/engine/organization/mapper/jclorgmap/JclOrgMapper.xml index ddb14133..96336796 100644 --- a/src/com/engine/organization/mapper/jclorgmap/JclOrgMapper.xml +++ b/src/com/engine/organization/mapper/jclorgmap/JclOrgMapper.xml @@ -152,7 +152,7 @@ where time_start <= convert(varchar(100),getDate(),23) and time_end > convert(varchar(100),getDate(),23)) and delete_type=0 group by job_id) e on a.id=e.job_id left join ( select c.id,count(1) fcnt from hrmresource a - left join Hrmjobtitles b on a.jobtitle=b.id + left join Hrmjobtitles b on a.jobtitle=b.id and a.status<4 left join jcl_org_job c on b.id=c.ec_jobtitle and a.subcompanyid1=c.ec_company and a.departmentid=c.ec_department group by c.id) f on f.id=a.id @@ -174,7 +174,7 @@ where time_start<=NOW() and time_end > NOW() and delete_type=0) group by job_id) e on a.id=e.job_id left join ( select c.id,count(1) fcnt from hrmresource a - left join Hrmjobtitles b on a.jobtitle=b.id + left join Hrmjobtitles b on a.jobtitle=b.id and a.status<4 left join jcl_org_job c on b.id=c.ec_jobtitle and a.subcompanyid1=c.ec_company and a.departmentid=c.ec_department group by c.id) f on f.id=a.id @@ -196,7 +196,7 @@ where time_start<=TO_DATE(to_char(SYSDATE,'yyyy-MM-dd'),'yyyy-MM-dd') and time_end>TO_DATE(to_char(SYSDATE,'yyyy-MM-dd'),'yyyy-MM-dd')) and delete_type=0 group by job_id) e on a.id=e.job_id left join ( select c.id,count(1) fcnt from hrmresource a - left join Hrmjobtitles b on a.jobtitle=b.id + left join Hrmjobtitles b on a.jobtitle=b.id and a.status<4 left join jcl_org_job c on b.id=c.ec_jobtitle and a.subcompanyid1=c.ec_company and a.departmentid=c.ec_department group by c.id) f on f.id=a.id