| | |
| | | <select id="countBaseInfoList" resultType="java.util.Map"> |
| | | SELECT |
| | | count(1) zzyg, |
| | | count(IF(t.empType = '1', 1, NULL)) zsyg, |
| | | count(IF(t.empType = '2', 1, NULL)) lsyg, |
| | | count(IF(t.empType = '01', 1, NULL)) zsyg, |
| | | count(IF(t.empType = '02', 1, NULL)) lsyg, |
| | | count( if(t.sex is not null and t.age !=0 and t.sex=1 and t.age>=${manOld},1,null))+count( if(t.sex is not null and t.age !=0 and t.sex=2 and t.age>=${womanOld},1,null)) clyg |
| | | FROM |
| | | t_emp_baseinfo t where 1=1 and t.delFlag=0 and t.empStatus = 0 |
| | |
| | | } |
| | | |
| | | //离职员工总数 |
| | | Integer empStatus = this.baseMapper.selectCount(new QueryWrapper<EmpBaseInfo>().eq("empStatus", 1)); |
| | | Integer empStatus = this.baseMapper.selectCount(new QueryWrapper<EmpBaseInfo>().eq("delFlag", 0).eq("empStatus", 1)); |
| | | if (empStatus != null) { |
| | | stringObjectMap.put("lzyg", empStatus); |
| | | } |