Commit 5a5342eb authored by huyuchen's avatar huyuchen

档案完整监控

parent 6f906b6a
......@@ -168,9 +168,9 @@
if(sum(if(a.IS_COMPLETE = '0',0,1)) > 0,1,0) as IS_COMPLETE,
sum(if(a.IS_COMPLETE = '0',0,1)) as INCOMPLETE_NUM,
concat(ROUND((count(a.EMP_IDCARD) - sum(if(a.IS_COMPLETE = '0',0,1)))*100/count(a.EMP_IDCARD),2),'%') as COMPLETE_PER,
sum(if(DATE_FORMAT(a.CREATE_TIME,'%Y-%m-%d') >= '2024-06-01',1,0)) as AFTER_EMPLOYMENT,
if(sum(if(DATE_FORMAT(a.CREATE_TIME,'%Y-%m-%d') >= '2024-06-01' and a.IS_COMPLETE = '0',1,0)) = 0,1,0) AFTER_IS_COMPLETE,
sum(if(DATE_FORMAT(a.CREATE_TIME,'%Y-%m-%d') >= '2024-06-01' and a.IS_COMPLETE = '1',1,0)) as AFTER_INCOMPLETE_NUM,
sum(if(DATE_FORMAT(a.CREATE_TIME,'%Y-%m-%d') >= '2024-05-01',1,0)) as AFTER_EMPLOYMENT,
if(sum(if((DATE_FORMAT(a.CREATE_TIME,'%Y-%m-%d') >= '2024-05-01' and a.IS_COMPLETE = '0') or '2024-05-01' > DATE_FORMAT(a.CREATE_TIME,'%Y-%m-%d'),0,1)) > 0,1,0) AFTER_IS_COMPLETE,
sum(if(DATE_FORMAT(a.CREATE_TIME,'%Y-%m-%d') >= '2024-05-01' and a.IS_COMPLETE = '1',1,0)) as AFTER_INCOMPLETE_NUM,
b.CREATE_NAME as ALERT_USER
from
t_employee_project a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment