|
@@ -53,6 +53,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="pguBtxChange" column="pgu_btx_change" />
|
|
<result property="pguBtxChange" column="pgu_btx_change" />
|
|
<result property="aeuTolueneProducedMEu" column="aeu_toluene_produced_m_eu" />
|
|
<result property="aeuTolueneProducedMEu" column="aeu_toluene_produced_m_eu" />
|
|
<result property="aromaticsOutput" column="aromatics_output" />
|
|
<result property="aromaticsOutput" column="aromatics_output" />
|
|
|
|
+ <result property="gaseityYield" column="gaseity_yield" />
|
|
|
|
+ <result property="tatalYield" column="tatal_yield" />
|
|
|
|
+ <result property="c3C2Yield" column="c3_c2_yield" />
|
|
|
|
+ <result property="h2Yield" column="h2_yield" />
|
|
|
|
+ <result property="ethyleneYield" column="ethylene_yield" />
|
|
|
|
+ <result property="propyleneYield" column="propylene_yield" />
|
|
|
|
+ <result property="c3C4LpgYield" column="c3_c4_lpg_yield" />
|
|
|
|
+ <result property="c4sYield" column="c4s_yield" />
|
|
|
|
+ <result property="poYield" column="po_yield" />
|
|
|
|
+ <result property="naphthaleneYield" column="naphthalene_yield" />
|
|
|
|
+ <result property="eboYield" column="ebo_yield" />
|
|
|
|
+ <result property="wsYield" column="ws_yield" />
|
|
|
|
+ <result property="methaneYield" column="methane_yield" />
|
|
|
|
+ <result property="offageYield" column="offage_yield" />
|
|
|
|
+ <result property="rpgYield" column="rpg_yield" />
|
|
|
|
+ <result property="benzeneYield" column="benzene_yield" />
|
|
|
|
+ <result property="tolueneYield" column="toluene_yield" />
|
|
|
|
+ <result property="xyleneYield" column="xylene_yield" />
|
|
|
|
+ <result property="c6C8NaYield" column="c6_c8_na_yield" />
|
|
|
|
+ <result property="c5Yield" column="c5_yield" />
|
|
|
|
+ <result property="c9Yield" column="c9_yield" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectCrackerRawMaterialByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult">
|
|
<select id="selectCrackerRawMaterialByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult">
|
|
@@ -92,7 +113,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where d.report_year = #{year}
|
|
where d.report_year = #{year}
|
|
</select>
|
|
</select>
|
|
<select id="selectEligibleProductRateByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
<select id="selectEligibleProductRateByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
- <select id="selectProductYieldByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
|
|
|
|
+ <select id="selectProductYieldByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult">
|
|
|
|
+ select
|
|
|
|
+ d.id, d.report_month, d.report_year,
|
|
|
|
+ d.gaseity_yield, d.tatal_yield, d.c3_c2_yield, d.h2_yield, d.ethylene_yield, d.propylene_yield,
|
|
|
|
+ d.c3_c4_lpg_yield, d.c4s_yield, d.po_yield, d.naphthalene_yield, d.ebo_yield, d.ws_yield,
|
|
|
|
+ d.methane_yield, d.offage_yield, d.rpg_yield, d.benzene_yield, d.toluene_yield, d.xylene_yield,
|
|
|
|
+ d.c6_c8_na_yield, d.c5_yield, d.c9_yield
|
|
|
|
+ from
|
|
|
|
+ t_monthly_production_report d
|
|
|
|
+ where d.report_year = #{year}
|
|
|
|
+ </select>
|
|
<select id="selectCrackerUtilityConsumptionByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
<select id="selectCrackerUtilityConsumptionByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
<select id="selectCrackerEnergyConsumptionByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
<select id="selectCrackerEnergyConsumptionByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
<select id="selectAromaticsUtilityConsumptionByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
<select id="selectAromaticsUtilityConsumptionByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
@@ -169,6 +200,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="pguBtxChange != null">pgu_btx_change,</if>
|
|
<if test="pguBtxChange != null">pgu_btx_change,</if>
|
|
<if test="aeuTolueneProducedMEu != null">aeu_toluene_produced_m_eu,</if>
|
|
<if test="aeuTolueneProducedMEu != null">aeu_toluene_produced_m_eu,</if>
|
|
<if test="aromaticsOutput != null">aromatics_output,</if>
|
|
<if test="aromaticsOutput != null">aromatics_output,</if>
|
|
|
|
+ <if test="gaseityYield != null">gaseity_yield,</if>
|
|
|
|
+ <if test="tatalYield != null">tatal_yield,</if>
|
|
|
|
+ <if test="c3C2Yield != null">c3_c2_yield,</if>
|
|
|
|
+ <if test="h2Yield != null">h2_yield,</if>
|
|
|
|
+ <if test="ethyleneYield != null">ethylene_yield,</if>
|
|
|
|
+ <if test="propyleneYield != null">propylene_yield,</if>
|
|
|
|
+ <if test="c3C4LpgYield != null">c3_c4_lpg_yield,</if>
|
|
|
|
+ <if test="c4sYield != null">c4s_yield,</if>
|
|
|
|
+ <if test="poYield != null">po_yield,</if>
|
|
|
|
+ <if test="naphthaleneYield != null">naphthalene_yield,</if>
|
|
|
|
+ <if test="eboYield != null">ebo_yield,</if>
|
|
|
|
+ <if test="wsYield != null">ws_yield,</if>
|
|
|
|
+ <if test="methaneYield != null">methane_yield,</if>
|
|
|
|
+ <if test="offageYield != null">offage_yield,</if>
|
|
|
|
+ <if test="rpgYield != null">rpg_yield,</if>
|
|
|
|
+ <if test="benzeneYield != null">benzene_yield,</if>
|
|
|
|
+ <if test="tolueneYield != null">toluene_yield,</if>
|
|
|
|
+ <if test="xyleneYield != null">xylene_yield,</if>
|
|
|
|
+ <if test="c6C8NaYield != null">c6_c8_na_yield,</if>
|
|
|
|
+ <if test="c5Yield != null">c5_yield,</if>
|
|
|
|
+ <if test="c9Yield != null">c9_yield,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">#{id},</if>
|
|
<if test="id != null">#{id},</if>
|
|
@@ -219,6 +271,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="pguBtxChange != null">#{pguBtxChange},</if>
|
|
<if test="pguBtxChange != null">#{pguBtxChange},</if>
|
|
<if test="aeuTolueneProducedMEu != null">#{aeuTolueneProducedMEu},</if>
|
|
<if test="aeuTolueneProducedMEu != null">#{aeuTolueneProducedMEu},</if>
|
|
<if test="aromaticsOutput != null">#{aromaticsOutput},</if>
|
|
<if test="aromaticsOutput != null">#{aromaticsOutput},</if>
|
|
|
|
+ <if test="gaseityYield != null">#{gaseityYield},</if>
|
|
|
|
+ <if test="tatalYield != null">#{tatalYield},</if>
|
|
|
|
+ <if test="c3C2Yield != null">#{c3C2Yield},</if>
|
|
|
|
+ <if test="h2Yield != null">#{h2Yield},</if>
|
|
|
|
+ <if test="ethyleneYield != null">#{ethyleneYield},</if>
|
|
|
|
+ <if test="propyleneYield != null">#{propyleneYield},</if>
|
|
|
|
+ <if test="c3C4LpgYield != null">#{c3C4LpgYield},</if>
|
|
|
|
+ <if test="c4sYield != null">#{c4sYield},</if>
|
|
|
|
+ <if test="poYield != null">#{poYield},</if>
|
|
|
|
+ <if test="naphthaleneYield != null">#{naphthaleneYield},</if>
|
|
|
|
+ <if test="eboYield != null">#{eboYield},</if>
|
|
|
|
+ <if test="wsYield != null">#{wsYield},</if>
|
|
|
|
+ <if test="methaneYield != null">#{methaneYield},</if>
|
|
|
|
+ <if test="offageYield != null">#{offageYield},</if>
|
|
|
|
+ <if test="rpgYield != null">#{rpgYield},</if>
|
|
|
|
+ <if test="benzeneYield != null">#{benzeneYield},</if>
|
|
|
|
+ <if test="tolueneYield != null">#{tolueneYield},</if>
|
|
|
|
+ <if test="xyleneYield != null">#{xyleneYield},</if>
|
|
|
|
+ <if test="c6C8NaYield != null">#{c6C8NaYield},</if>
|
|
|
|
+ <if test="c5Yield != null">#{c5Yield},</if>
|
|
|
|
+ <if test="c9Yield != null">#{c9Yield},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -270,6 +343,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="pguBtxChange != null">pgu_btx_change = #{pguBtxChange},</if>
|
|
<if test="pguBtxChange != null">pgu_btx_change = #{pguBtxChange},</if>
|
|
<if test="aeuTolueneProducedMEu != null">aeu_toluene_produced_m_eu = #{aeuTolueneProducedMEu},</if>
|
|
<if test="aeuTolueneProducedMEu != null">aeu_toluene_produced_m_eu = #{aeuTolueneProducedMEu},</if>
|
|
<if test="aromaticsOutput != null">aromatics_output = #{aromaticsOutput},</if>
|
|
<if test="aromaticsOutput != null">aromatics_output = #{aromaticsOutput},</if>
|
|
|
|
+ <if test="gaseityYield != null">gaseity_yield = #{gaseityYield},</if>
|
|
|
|
+ <if test="tatalYield != null">tatal_yield = #{tatalYield},</if>
|
|
|
|
+ <if test="c3C2Yield != null">c3_c2_yield = #{c3C2Yield},</if>
|
|
|
|
+ <if test="h2Yield != null">h2_yield = #{h2Yield},</if>
|
|
|
|
+ <if test="ethyleneYield != null">ethylene_yield = #{ethyleneYield},</if>
|
|
|
|
+ <if test="propyleneYield != null">propylene_yield = #{propyleneYield},</if>
|
|
|
|
+ <if test="c3C4LpgYield != null">c3_c4_lpg_yield = #{c3C4LpgYield},</if>
|
|
|
|
+ <if test="c4sYield != null">c4s_yield = #{c4sYield},</if>
|
|
|
|
+ <if test="poYield != null">po_yield = #{poYield},</if>
|
|
|
|
+ <if test="naphthaleneYield != null">naphthalene_yield = #{naphthaleneYield},</if>
|
|
|
|
+ <if test="eboYield != null">ebo_yield = #{eboYield},</if>
|
|
|
|
+ <if test="wsYield != null">ws_yield = #{wsYield},</if>
|
|
|
|
+ <if test="methaneYield != null">methane_yield = #{methaneYield},</if>
|
|
|
|
+ <if test="offageYield != null">offage_yield = #{offageYield},</if>
|
|
|
|
+ <if test="rpgYield != null">rpg_yield = #{rpgYield},</if>
|
|
|
|
+ <if test="benzeneYield != null">benzene_yield = #{benzeneYield},</if>
|
|
|
|
+ <if test="tolueneYield != null">toluene_yield = #{tolueneYield},</if>
|
|
|
|
+ <if test="xyleneYield != null">xylene_yield = #{xyleneYield},</if>
|
|
|
|
+ <if test="c6C8NaYield != null">c6_c8_na_yield = #{c6C8NaYield},</if>
|
|
|
|
+ <if test="c5Yield != null">c5_yield = #{c5Yield},</if>
|
|
|
|
+ <if test="c9Yield != null">c9_yield = #{c9Yield},</if>
|
|
</trim>
|
|
</trim>
|
|
where report_month = #{reportMonth} and report_year = #{reportYear}
|
|
where report_month = #{reportMonth} and report_year = #{reportYear}
|
|
</update>
|
|
</update>
|