| | |
| | | (select dept_Name from t_dept as dept where dept.dept_Id= a.deptId) as deptName,a.jobName,',(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) AS ''', |
| | | '(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),' from t_emp_baseinfo a') as querySql |
| | | </select> |
| | | </mapper> |