| | |
| | | <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},'%')) |
| | |
| | | |
| | | |
| | | <select id="yxbaseInfoList" resultType="cc.mrbird.febs.server.hr.entity.EmpBaseInfo"> |
| | | select t1.* from t_emp_baseinfo t left join t_dept t2 on t.deptId=t2.DEPT_ID INNER JOIN t_emp_contractinfo t1 on t.empId=t1.empId where 1=1 and t.delFlag=0 and t1.delFlag=0 |
| | | select t1.*,t.allDeptName from t_emp_baseinfo t left join t_dept t2 on t.deptId=t2.DEPT_ID INNER JOIN t_emp_contractinfo t1 on t.empId=t1.empId where 1=1 and t.delFlag=0 and t1.delFlag=0 |
| | | <choose> |
| | | <when test="number==14"> |
| | | and t1.contractStatus = '2' |
| | |
| | | |
| | | <select id="dqbaseInfoList" resultType="cc.mrbird.febs.server.hr.entity.EmpBaseInfo"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t INNER JOIN t_emp_contractinfo t1 on t.empId=t1.empId left join t_dept t2 on t.deptId=t2.DEPT_ID where 1=1 and t.delFlag=0 and t1.delFlag=0 and t1.contractStatus = '4' |
| | | <if test="name!= 'undefined' and name!=null and name!=''"> |
| | |
| | | </select> |
| | | <select id="jcseInfoList" resultType="cc.mrbird.febs.server.hr.entity.EmpBaseInfo"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t INNER JOIN t_emp_contractinfo t1 on t.empId=t1.empId left join t_dept t2 on t.deptId=t2.DEPT_ID where 1=1 and t.delFlag=0 and t1.delFlag=0 and t1.contractStatus = '3' |
| | | <if test="name!= 'undefined' and name!=null and name!=''"> |
| | |
| | | </select> |
| | | <select id="empBaseInfoCqList" resultType="cc.mrbird.febs.server.hr.entity.EmpDimissionAttend"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_dimissionattend t1 on t.empId=t1.empId left join t_dept t2 on t.deptId=t2.DEPT_ID where 1=1 and t.delFlag=0 and t1.delFlag=0 |
| | | <choose> |
| | |
| | | |
| | | <select id="empBaseInfoQjList" resultType="cc.mrbird.febs.server.hr.entity.EmpLeaveInfo"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_leaveinfo 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!=''"> |
| | |
| | | |
| | | <select id="empBaseInfoTjList" resultType="cc.mrbird.febs.server.hr.entity.EmpPhysicalExam"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_physicalexam 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!=''"> |
| | |
| | | |
| | | <select id="empBaseInfoLzList" resultType="cc.mrbird.febs.server.hr.entity.EmpLaborTrouble"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_labortrouble 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!=''"> |
| | |
| | | |
| | | <select id="empBaseInfoGsList" resultType="cc.mrbird.febs.server.hr.entity.EmpOccupational"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_occupational 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!=''"> |
| | |
| | | |
| | | <select id="empBaseInfoYwList" resultType="cc.mrbird.febs.server.hr.entity.EmpAccidentCases"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_accidentcases 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!=''"> |
| | |
| | | |
| | | <select id="empBaseInfoSbList" resultType="cc.mrbird.febs.server.hr.entity.EmpInsurance"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_insurance 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!=''"> |
| | |
| | | |
| | | <select id="empBaseInfoSyjList" resultType="cc.mrbird.febs.server.hr.entity.EmpUnemployment"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_unemployment 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!=''"> |
| | |
| | | |
| | | <select id="empBaseInfoBlList" resultType="cc.mrbird.febs.server.hr.entity.EmpBadRecord"> |
| | | SELECT |
| | | t1.* |
| | | t1.*,t.allDeptName |
| | | FROM |
| | | t_emp_baseinfo t right JOIN t_emp_badrecord 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!=''"> |
| | |
| | | |
| | | <select id="empBaseInfoTgList" resultType="cc.mrbird.febs.server.hr.entity.EmpJobChange"> |
| | | SELECT |
| | | t1.*,t.empNumb,t.deptName,t.certificateNumb |
| | | t1.*,t.empNumb,t.deptName,t.certificateNumb,t.allDeptName |
| | | 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> |