yz
2021-03-09 574c422d2120baec3031a05d70eecc6724905da1
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/mapper/EmpAccessoryMapper.xml
@@ -14,7 +14,7 @@
    </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
               (select dept_Name 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
                ${ew.customSqlSegment}
    </select>
@@ -22,4 +22,8 @@
    <select id="getDictType" resultType="cc.mrbird.febs.common.core.entity.system.DicItem">
        select * from t_dicitem where dicCode=#{type}
    </select>
    <select id="getEmpAccessoryNumber" resultType="java.util.Map">
        select a.labelCode,(select count(1) from t_emp_accessory b
        where b.empId = ${empId} and b.delFlag = 0 and b.labelId = a.labelId) as number from t_label a where delFlag = 0
    </select>
</mapper>