<?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="org.springblade.modules.pfb.mapper.PfbMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="pfbResultMap" type="org.springblade.modules.pfb.entity.PfbEntity">
        <result column="id" property="id"/>
        <result column="ryid" property="ryid"/>
        <result column="pfxid" property="pfxid"/>
        <result column="pfxmc" property="pfxmc"/>
        <result column="xtfs" property="xtfs"/>
        <result column="dwpf" property="dwpf"/>
        <result column="create_user" property="createUser"/>
        <result column="create_dept" property="createDept"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="status" property="status"/>
        <result column="is_deleted" property="isDeleted"/>
        <result column="pfyf" property="pfyf"/>
    </resultMap>


    <select id="selectPfbPage" resultMap="pfbResultMap">
        select * from jlrh_pfb where is_deleted = 0
    </select>


    <select id="exportPfb" resultType="org.springblade.modules.pfb.excel.PfbExcel">
        SELECT * FROM jlrh_pfb ${ew.customSqlSegment}
    </select>

    <select id="getPf" resultType="org.springblade.modules.byMonth.vo.ByMonthVO">
        SELECT
            *
        FROM
            pfqr_by_month
        WHERE
            sjhm = #{params.sjhm}
          AND yf = #{params.yf}
    </select>

</mapper>
