luoyb
2021-04-15 0f86fe76d4d4fa5a4fa1e8661c6b40de87cdd2aa
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/mapper/EmpAccessoryMapper.xml
@@ -13,9 +13,10 @@
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 from t_emp_baseinfo a
        select a.delFlag,a.empName,a.empStatus,a.empId,a.certificateNumb,a.empNumb,
               (select allDeptName from t_dept as dept where dept.dept_Id= a.deptId) as deptName,a.jobName from t_emp_baseinfo a
              inner join t_dept c on a.deptId = c.DEPT_ID
              left join t_emp_accessory acc on acc.empId = a.empId
                ${ew.customSqlSegment}
    </select>