透视图在岗数bug修复
This commit is contained in:
parent
488d24460d
commit
41fdd36997
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue