大屏出勤不要统计管理人员
This commit is contained in:
parent
d3a6d26f9c
commit
86c9698e85
@ -85,7 +85,8 @@
|
|||||||
ex.contract_period_end_time ,ex.contract_period_start_time), 4 )),
|
ex.contract_period_end_time ,ex.contract_period_start_time), 4 )),
|
||||||
0
|
0
|
||||||
) * 100,
|
) * 100,
|
||||||
2) period_ratio
|
2) period_ratio,
|
||||||
|
ex.owner_unit
|
||||||
FROM project a
|
FROM project a
|
||||||
INNER JOIN company b ON a.company_sn = b.company_sn
|
INNER JOIN company b ON a.company_sn = b.company_sn
|
||||||
LEFT JOIN system_provinces c ON a.provinces_code = c.provinceid
|
LEFT JOIN system_provinces c ON a.provinces_code = c.provinceid
|
||||||
|
|||||||
@ -1038,7 +1038,8 @@
|
|||||||
select COUNT(1) totalPerson,
|
select COUNT(1) totalPerson,
|
||||||
IFNULL(sum((CASE WHEN tp.person_type = 1 then 1 ELSE 0 END)), 0) lwPersonTotal,
|
IFNULL(sum((CASE WHEN tp.person_type = 1 then 1 ELSE 0 END)), 0) lwPersonTotal,
|
||||||
IFNULL(sum((CASE WHEN tp.person_type = 2 then 1 ELSE 0 END)), 0) glPersonTotal,
|
IFNULL(sum((CASE WHEN tp.person_type = 2 then 1 ELSE 0 END)), 0) glPersonTotal,
|
||||||
IFNULL(sum((CASE WHEN tp.person_type = 3 then 1 ELSE 0 END)), 0) lsPersonTotal
|
IFNULL(sum((CASE WHEN tp.person_type = 3 then 1 ELSE 0 END)), 0) lsPersonTotal,
|
||||||
|
IFNULL(sum(if(tp.person_type = 1 and exitNum>0,1,0)), 0) lwExitPersonTotal
|
||||||
from
|
from
|
||||||
(SELECT w1.*,
|
(SELECT w1.*,
|
||||||
ifnull(sum(if(p.pass_type=2,1,0)),0) as exitNum
|
ifnull(sum(if(p.pass_type=2,1,0)),0) as exitNum
|
||||||
@ -1078,8 +1079,7 @@
|
|||||||
select COUNT(1) totalPerson,
|
select COUNT(1) totalPerson,
|
||||||
IFNULL(sum((CASE WHEN tp.person_type = 1 then 1 ELSE 0 END)), 0) lwPersonTotal,
|
IFNULL(sum((CASE WHEN tp.person_type = 1 then 1 ELSE 0 END)), 0) lwPersonTotal,
|
||||||
IFNULL(sum((CASE WHEN tp.person_type = 2 then 1 ELSE 0 END)), 0) glPersonTotal,
|
IFNULL(sum((CASE WHEN tp.person_type = 2 then 1 ELSE 0 END)), 0) glPersonTotal,
|
||||||
IFNULL(sum((CASE WHEN tp.person_type = 3 then 1 ELSE 0 END)), 0) lsPersonTotal,
|
IFNULL(sum((CASE WHEN tp.person_type = 3 then 1 ELSE 0 END)), 0) lsPersonTotal
|
||||||
IFNULL(sum(if(tp.person_type = 1 and exitNum>0,1,0)), 0) lwExitPersonTotal
|
|
||||||
from
|
from
|
||||||
(SELECT DISTINCT w1.*
|
(SELECT DISTINCT w1.*
|
||||||
from worker_info w1
|
from worker_info w1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user