<?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.huimv.getdata.mapper.ErpHrMapper">


    <select id="getYuanGongRenShu" resultType="com.huimv.getdata.entity.renshi.YuanGongShuLiang"
            parameterType="java.util.Date">
        SELECT 	A.FSTAFFID , A.FSTAFFNUMBER ,A.FMGRCENTERID ,A.FCREATEORGID  ,A.FBLNENTRYDATE ,B.FNAME ,B.FADDRESS , C.FBLNJOBSTATUS
 FROM T_HR_EMPINFO A
INNER JOIN  T_HR_EMPINFO_L  B ON A.FID = B.FID
LEFT JOIN  T_BD_STAFF C ON C.FSTAFFID = A.FSTAFFID
	WHERE C.FBLNJOBSTATUS in (100444,100445,100446,100447,100448,100449,100460)
        <if test="date !=null">
            and  A.FBLNENTRYDATE >= #{date}
        </if>
    </select>
</mapper>
