<?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.rhzf.aqxcff.mapper.RhzfAqxcffMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="rhzfAqxcffResultMap" type="org.springblade.modules.rhzf.aqxcff.pojo.entity.RhzfAqxcffEntity">
        <result column="fw_id" property="fwId"/>
        <result column="dzbm" property="dzbm"/>
        <result column="xcnr" property="xcnr"/>
        <result column="fj" property="fj"/>
    </resultMap>

    <select id="selectRhzfAqxcffPage" resultMap="rhzfAqxcffResultMap">
        select * from rhzf_aqxcff where is_deleted = 0
    </select>

    <select id="exportRhzfAqxcff" resultType="org.springblade.modules.rhzf.aqxcff.excel.RhzfAqxcffExcel">
        SELECT * FROM rhzf_aqxcff ${ew.customSqlSegment}
    </select>

    <select id="getByDzbm" resultType="org.springblade.modules.rhzf.aqxcff.pojo.entity.RhzfAqxcffEntity">
        SELECT * FROM jdrh.rhzf_aqxcff WHERE is_deleted = 0 AND dzbm = #{params.dzbm} ORDER BY update_time DESC
    </select>
</mapper>
