| | |
| | | <select id="sysConfig" resultType="cc.mrbird.febs.common.core.entity.system.SysConfig"> |
| | | select * from sys_config where delFlag='0' and config_key in ("manOld","womanOld") ORDER BY config_key asc |
| | | </select> |
| | | |
| | | <select id="selectPageVo" resultType="cc.mrbird.febs.server.hr.entity.EmpBaseInfo"> |
| | | select a.* from t_emp_baseInfo a |
| | | inner join t_dept c on a.deptId = c.DEPT_ID |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | <select id="countZcygBaseInfoList" resultType="java.util.Map"> |
| | | SELECT |
| | |
| | | <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 |
| | |
| | | |
| | | |
| | | <select id="zsbaseInfoList" resultType="cc.mrbird.febs.server.hr.entity.EmpBaseInfo"> |
| | | select t1.* from t_emp_baseinfo t1 left join t_dept t2 on t1.deptId=t2.DEPT_ID where t1.empType='1' and t1.delFlag=0 and t1.empStatus=0 |
| | | select t1.* from t_emp_baseinfo t1 left join t_dept t2 on t1.deptId=t2.DEPT_ID where t1.empType='01' and t1.delFlag=0 and t1.empStatus=0 |
| | | <if test="name!= 'undefined' and name!=null and name!=''"> |
| | | and (t1.empNumb like CONCAT('%',#{name},'%') or t1.empName like CONCAT('%',#{name},'%') or |
| | | t1.certificateNumb like CONCAT('%',#{name},'%') or t2.DEPT_NAME like CONCAT('%',#{name},'%')) |
| | |
| | | </select> |
| | | |
| | | <select id="lsbaseInfoList" resultType="cc.mrbird.febs.server.hr.entity.EmpBaseInfo"> |
| | | select t1.* from t_emp_baseinfo t1 left join t_dept t2 on t1.deptId=t2.DEPT_ID where t1.empType='2' and t1.delFlag=0 and t1.empStatus=0 |
| | | select t1.* from t_emp_baseinfo t1 left join t_dept t2 on t1.deptId=t2.DEPT_ID where t1.empType='02' and t1.delFlag=0 and t1.empStatus=0 |
| | | <if test="name!= 'undefined' and name!=null and name!=''"> |
| | | and (t1.empNumb like CONCAT('%',#{name},'%') or t1.empName like CONCAT('%',#{name},'%') or |
| | | t1.certificateNumb like CONCAT('%',#{name},'%') or t2.DEPT_NAME like CONCAT('%',#{name},'%')) |
| | |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_jobChange t1 on t.empId=t1.empId where 1=1 and t.delFlag=0 and t1.delFlag=0 |
| | | <if test="name!= 'undefined' and name!=null and name!=''"> |
| | | and (t.empNumb like CONCAT('%',#{name},'%') or t.empName like CONCAT('%',#{name},'%') or |
| | | and (t.empNumb like CONCAT('%',#{name},'%') or t1.empName like CONCAT('%',#{name},'%') or |
| | | t.certificateNumb like CONCAT('%',#{name},'%') or t.deptName like CONCAT('%',#{name},'%')) |
| | | </if> |
| | | <choose> |