<?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="cn.cecep.talroad.mapper.analysis.SRaActionReportsActualYieldMapper">

    <resultMap type="cn.cecep.talroad.domain.analysis.SRaActionReportsActualYield" id="SRaActionReportsActualYieldResult">
        <result property="id"    column="id"    />
        <result property="reportType"    column="report_type"    />
        <result property="reportTime"    column="report_time"    />
        <result property="factoryId"    column="factory_id"    />
        <result property="factoryName"    column="factory_name"    />
        <result property="productionUnit"    column="production_unit"    />
        <result property="runningParamCode"    column="running_param_code"    />
        <result property="runningParamName"    column="running_param_name"    />
        <result property="actualEmissions"    column="actual_emissions"    />
        <result property="updateTime"    column="update_time"    />
        <result property="updateBy"    column="update_by"    />
        <result property="createTime"    column="create_time"    />
        <result property="createBy"    column="create_by"    />
    </resultMap>


    <sql id="selectSRaActionReportsActualYieldVo">
        select sraray.id, report_type, report_time, factory_id, pf.factory_name, production_unit, running_param_code, running_param_name, actual_emissions, update_time, update_by, create_time, create_by from s_ra_action_reports_actual_yield sraray
    </sql>

    <select id="selectSRaActionReportsActualYieldList" parameterType="cn.cecep.talroad.domain.analysis.SRaActionReportsActualYield" resultMap="SRaActionReportsActualYieldResult">
        <include refid="selectSRaActionReportsActualYieldVo"/>
        left join pc_factory pf on sraray.factory_id = pf.id
        ${ew.customSqlSegment}
    </select>

    <select id="selectSRaActionReportsActualYieldPage" resultMap="SRaActionReportsActualYieldResult">
        <include refid="selectSRaActionReportsActualYieldVo"/>
        left join pc_factory pf on sraray.factory_id = pf.id
        ${ew.customSqlSegment}
    </select>

</mapper>
