| | |
| | | <mapper namespace="cc.mrbird.febs.server.hr.mapper.EmpAccessoryMapper"> |
| | | |
| | | <select id="getQuerySql" resultType="java.lang.String"> |
| | | select CONCAT('select a.delFlag,a.empName,a.empId,a.empNumb,a.age,a.archivesStatus,a.sex,a.insuranceType,a.politics,a.education,a.entryDate,a.certificateNumb, |
| | | (select dept_Name from t_dept as dept where dept.dept_Id= a.deptId) as deptName,a.jobName,',(SELECT |
| | | select CONCAT(',',(SELECT |
| | | GROUP_CONCAT(DISTINCT |
| | | CONCAT( |
| | | '(SELECT COUNT(1) FROM t_emp_accessory accessory inner join t_label label where label.labelId=accessory.labelId and accessory.delFlag = 0 and label.delFlag = 0 and a.empId = accessory.empId and label.labelCode = ''',label.labelCode,''') AS ''', |
| | | label.labelCode, '''' |
| | | ) |
| | | ) |
| | | FROM t_label label order by label.sort),' from t_emp_baseinfo a') as querySql |
| | | FROM t_label label where label.delFlag = 0 order by label.sort)) as querySql |
| | | </select> |
| | | <select id="selectPageVo" resultType="java.util.Map"> |
| | | select a.delFlag,a.empName,a.empStatus,a.empId,a.empNumb,a.age,a.archivesStatus,a.sex,a.insuranceType,a.politics,a.education,a.entryDate,a.certificateNumb, |
| | | (select dept_Name from t_dept as dept where dept.dept_Id= a.deptId) as deptName,a.jobName ${sql} from t_emp_baseinfo a |
| | | inner join t_dept c on a.deptId = c.DEPT_ID |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |