generated from dxfeng/secondev-wugang-dxfeng
71 lines
2.6 KiB
XML
71 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.weaver.seconddev.portal.mapper.ManagerPortalMapper">
|
|
|
|
<select id="getOnJobNum" resultType="java.lang.Integer">
|
|
SELECT COUNT(t.id) AS value
|
|
FROM e10_common.uf_jcl_employee_information t
|
|
WHERE t.delete_type = 0
|
|
AND t.tenant_key = #{tenantKey}
|
|
<if test="departmentIdList != null and departmentIdList.size() > 0">
|
|
AND t.department IN
|
|
<foreach collection="departmentIdList" item="departmentId" open="(" close=")" separator=",">
|
|
#{departmentId}
|
|
</foreach>
|
|
</if>
|
|
|
|
AND t.hiredate <= #{endDate}
|
|
AND (t.zhgzr >= #{startDate}
|
|
OR t.zhgzr IS NULL
|
|
OR t.zhgzr = '')
|
|
|
|
</select>
|
|
|
|
<select id="getResignNumber" resultType="java.lang.Integer">
|
|
select count(id) as value from e10_common.uf_jcl_lzxxjl t
|
|
where t.delete_type = 0 and t.tenant_key = #{tenantKey}
|
|
<if test="departmentIdList != null and departmentIdList.size() > 0">
|
|
AND t.lzqbm IN
|
|
<foreach collection="departmentIdList" item="departmentId" open="(" close=")" separator=",">
|
|
#{departmentId}
|
|
</foreach>
|
|
</if>
|
|
and t.zhgzr >= #{startDate}
|
|
and t.zhgzr <= #{endDate}
|
|
|
|
</select>
|
|
|
|
<select id="getResigningNumber" resultType="java.lang.Integer">
|
|
select count(t.id) from e10_common.uf_jcl_lzsq t
|
|
where t.delete_type = 0 and t.tenant_key = #{tenantKey}
|
|
<!--审批中-->
|
|
and t.flow_status in (0,1,2)
|
|
<!--申请日期-->
|
|
and t.sqrq >= #{startDate}
|
|
and t.sqrq <= #{endDate}
|
|
</select>
|
|
|
|
<select id="getEntryingNumber" resultType="java.lang.Integer">
|
|
select count(t.id) from e10_common.uf_jcl_rzsq t
|
|
where t.delete_type = 0 and t.tenant_key = #{tenantKey}
|
|
<!--审批中-->
|
|
and t.flow_status in (0,1,2)
|
|
<!--申请日期-->
|
|
and t.sqsj >= #{startDate}
|
|
and t.sqsj <= #{endDate}
|
|
</select>
|
|
<select id="getManageDeptIds" resultType="java.lang.Long">
|
|
select t.id
|
|
from eteams.department t
|
|
inner join eteams.ft_1154218872715993098 t2 on t.formdata = t2.id
|
|
where t.type = 'department'
|
|
and t.delete_type = 0
|
|
and t.status = 1
|
|
and t.tenant_key = #{tenantKey}
|
|
and t2.tenant_key = #{tenantKey}
|
|
and t2.delete_type = 0
|
|
and t2.bmfzr = #{empId}
|
|
</select>
|
|
|
|
</mapper>
|