|
@@ -5,43 +5,54 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<mapper namespace="com.ruoyi.project.production.mapper.TMonthlyProductionReportMapper">
|
|
<mapper namespace="com.ruoyi.project.production.mapper.TMonthlyProductionReportMapper">
|
|
|
|
|
|
<resultMap type="TMonthlyProductionReport" id="TMonthlyProductionReportResult">
|
|
<resultMap type="TMonthlyProductionReport" id="TMonthlyProductionReportResult">
|
|
- <result property="id" column="id" />
|
|
|
|
- <result property="reportMonth" column="report_month" />
|
|
|
|
- <result property="reportYear" column="report_year" />
|
|
|
|
- <result property="nap" column="nap" />
|
|
|
|
- <result property="c5" column="c5" />
|
|
|
|
- <result property="c6C8Na" column="c6_c8_na" />
|
|
|
|
- <result property="wisonEthane" column="wison_ethane" />
|
|
|
|
- <result property="lpgToFurnace" column="lpg_to_furnace" />
|
|
|
|
- <result property="raff3FrBdAnd2ph" column="raff3_fr_bd_and_2ph" />
|
|
|
|
- <result property="c2FrLdpe" column="c2_fr_ldpe" />
|
|
|
|
- <result property="c3FrOxo" column="c3_fr_oxo" />
|
|
|
|
- <result property="mixedC3C4" column="mixed_c3_c4" />
|
|
|
|
- <result property="hyC9" column="hy_c9" />
|
|
|
|
- <result property="pguOffgas" column="pgu_offgas" />
|
|
|
|
- <result property="washOil" column="wash_oil" />
|
|
|
|
- <result property="toluene" column="toluene" />
|
|
|
|
- <result property="hyC4FrR800" column="hy_c4_fr_r800" />
|
|
|
|
- <result property="crackerRawInput" column="cracker_raw_input" />
|
|
|
|
- <result property="crackerRawFeed" column="cracker_raw_feed" />
|
|
|
|
- <result property="h2Produced" column="h2_produced" />
|
|
|
|
- <result property="ethylenProduced" column="ethylen_produced" />
|
|
|
|
- <result property="propyleneProduced" column="propylene_produced" />
|
|
|
|
- <result property="c3C4LpgProduced" column="c3_c4_lpg_produced" />
|
|
|
|
- <result property="mixedC4sProduced" column="mixed_c4s_produced" />
|
|
|
|
- <result property="rpgProduced" column="rpg_produced" />
|
|
|
|
- <result property="poFluxOilProduced" column="po_flux_oil_produced" />
|
|
|
|
- <result property="naphthaleneProduced" column="naphthalene_produced" />
|
|
|
|
- <result property="eboProduced" column="ebo_produced" />
|
|
|
|
- <result property="residueOilProduced" column="residue_oil_produced" />
|
|
|
|
- <result property="methaneProduced" column="methane_produced" />
|
|
|
|
- <result property="offgasProduced" column="offgas_produced" />
|
|
|
|
- <result property="crackerOutput" column="cracker_output" />
|
|
|
|
- <result property="pguRpg2" column="pgu_rpg2" />
|
|
|
|
- <result property="pguH2" column="pgu_h2" />
|
|
|
|
- <result property="pguBtxProduced" column="pgu_btx_produced" />
|
|
|
|
- <result property="pguBtxToAeu" column="pgu_btx_to_aeu" />
|
|
|
|
- <result property="aromaticsRawInput" column="aromatics_raw_input" />
|
|
|
|
|
|
+ <result property="id" column="id" />
|
|
|
|
+ <result property="reportMonth" column="report_month" />
|
|
|
|
+ <result property="reportYear" column="report_year" />
|
|
|
|
+ <result property="nap" column="nap" />
|
|
|
|
+ <result property="c5" column="c5" />
|
|
|
|
+ <result property="c6C8Na" column="c6_c8_na" />
|
|
|
|
+ <result property="wisonEthane" column="wison_ethane" />
|
|
|
|
+ <result property="lpgToFurnace" column="lpg_to_furnace" />
|
|
|
|
+ <result property="raff3FrBdAnd2ph" column="raff3_fr_bd_and_2ph" />
|
|
|
|
+ <result property="c2FrLdpe" column="c2_fr_ldpe" />
|
|
|
|
+ <result property="c3FrOxo" column="c3_fr_oxo" />
|
|
|
|
+ <result property="mixedC3C4" column="mixed_c3_c4" />
|
|
|
|
+ <result property="hyC9" column="hy_c9" />
|
|
|
|
+ <result property="pguOffgas" column="pgu_offgas" />
|
|
|
|
+ <result property="washOil" column="wash_oil" />
|
|
|
|
+ <result property="toluene" column="toluene" />
|
|
|
|
+ <result property="hyC4FrR800" column="hy_c4_fr_r800" />
|
|
|
|
+ <result property="crackerRawInput" column="cracker_raw_input" />
|
|
|
|
+ <result property="crackerRawFeed" column="cracker_raw_feed" />
|
|
|
|
+ <result property="h2Produced" column="h2_produced" />
|
|
|
|
+ <result property="ethylenProduced" column="ethylen_produced" />
|
|
|
|
+ <result property="propyleneProduced" column="propylene_produced" />
|
|
|
|
+ <result property="c3C4LpgProduced" column="c3_c4_lpg_produced" />
|
|
|
|
+ <result property="mixedC4sProduced" column="mixed_c4s_produced" />
|
|
|
|
+ <result property="rpgProduced" column="rpg_produced" />
|
|
|
|
+ <result property="poFluxOilProduced" column="po_flux_oil_produced" />
|
|
|
|
+ <result property="naphthaleneProduced" column="naphthalene_produced" />
|
|
|
|
+ <result property="eboProduced" column="ebo_produced" />
|
|
|
|
+ <result property="residueOilProduced" column="residue_oil_produced" />
|
|
|
|
+ <result property="methaneProduced" column="methane_produced" />
|
|
|
|
+ <result property="offgasProduced" column="offgas_produced" />
|
|
|
|
+ <result property="crackerOutput" column="cracker_output" />
|
|
|
|
+ <result property="pguRpg2" column="pgu_rpg2" />
|
|
|
|
+ <result property="pguH2" column="pgu_h2" />
|
|
|
|
+ <result property="pguBtxProduced" column="pgu_btx_produced" />
|
|
|
|
+ <result property="pguBtxToAeu" column="pgu_btx_to_aeu" />
|
|
|
|
+ <result property="aromaticsRawInput" column="aromatics_raw_input" />
|
|
|
|
+ <result property="aeuBenzeneProduced" column="aeu_benzene_produced" />
|
|
|
|
+ <result property="aeuTolueneProduced" column="aeu_toluene_produced" />
|
|
|
|
+ <result property="aeuXyleneProduced" column="aeu_xylene_produced" />
|
|
|
|
+ <result property="aeuC6C8NaProduced" column="aeu_c6_c8_na_produced" />
|
|
|
|
+ <result property="pguC5Produced" column="pgu_c5_produced" />
|
|
|
|
+ <result property="pguC9Produced" column="pgu_c9_produced" />
|
|
|
|
+ <result property="pguWashoilProduced" column="pgu_washoil_produced" />
|
|
|
|
+ <result property="pguOffgasProduced" column="pgu_offgas_produced" />
|
|
|
|
+ <result property="pguBtxChange" column="pgu_btx_change" />
|
|
|
|
+ <result property="aeuTolueneProducedMEu" column="aeu_toluene_produced_m_eu" />
|
|
|
|
+ <result property="aromaticsOutput" column="aromatics_output" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectCrackerRawMaterialByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult">
|
|
<select id="selectCrackerRawMaterialByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult">
|
|
@@ -70,7 +81,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
t_monthly_production_report d
|
|
t_monthly_production_report d
|
|
where d.report_year = #{year}
|
|
where d.report_year = #{year}
|
|
</select>
|
|
</select>
|
|
- <select id="selectAromaticsOutputProductByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
|
|
|
|
+ <select id="selectAromaticsOutputProductByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult">
|
|
|
|
+ select
|
|
|
|
+ d.id, d.report_month, d.report_year, d.aeu_benzene_produced, d.aeu_toluene_produced,
|
|
|
|
+ d.aeu_xylene_produced, d.aeu_c6_c8_na_produced, d.pgu_c5_produced, d.pgu_c9_produced,
|
|
|
|
+ d.pgu_washoil_produced, d.pgu_offgas_produced, d.pgu_btx_change, d.aeu_toluene_produced_m_eu,
|
|
|
|
+ d.aromatics_output, d.PGU_BTX_PRODUCED
|
|
|
|
+ from
|
|
|
|
+ t_monthly_production_report d
|
|
|
|
+ where d.report_year = #{year}
|
|
|
|
+ </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>
|
|
<select id="selectCrackerUtilityConsumptionByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
<select id="selectCrackerUtilityConsumptionByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
@@ -138,6 +158,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="pguBtxProduced != null">pgu_btx_produced,</if>
|
|
<if test="pguBtxProduced != null">pgu_btx_produced,</if>
|
|
<if test="pguBtxToAeu != null">pgu_btx_to_aeu,</if>
|
|
<if test="pguBtxToAeu != null">pgu_btx_to_aeu,</if>
|
|
<if test="aromaticsRawInput != null">aromatics_raw_input,</if>
|
|
<if test="aromaticsRawInput != null">aromatics_raw_input,</if>
|
|
|
|
+ <if test="aeuBenzeneProduced != null">aeu_benzene_produced,</if>
|
|
|
|
+ <if test="aeuTolueneProduced != null">aeu_toluene_produced,</if>
|
|
|
|
+ <if test="aeuXyleneProduced != null">aeu_xylene_produced,</if>
|
|
|
|
+ <if test="aeuC6C8NaProduced != null">aeu_c6_c8_na_produced,</if>
|
|
|
|
+ <if test="pguC5Produced != null">pgu_c5_produced,</if>
|
|
|
|
+ <if test="pguC9Produced != null">pgu_c9_produced,</if>
|
|
|
|
+ <if test="pguWashoilProduced != null">pgu_washoil_produced,</if>
|
|
|
|
+ <if test="pguOffgasProduced != null">pgu_offgas_produced,</if>
|
|
|
|
+ <if test="pguBtxChange != null">pgu_btx_change,</if>
|
|
|
|
+ <if test="aeuTolueneProducedMEu != null">aeu_toluene_produced_m_eu,</if>
|
|
|
|
+ <if test="aromaticsOutput != null">aromatics_output,</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>
|
|
@@ -177,6 +208,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="pguBtxProduced != null">#{pguBtxProduced},</if>
|
|
<if test="pguBtxProduced != null">#{pguBtxProduced},</if>
|
|
<if test="pguBtxToAeu != null">#{pguBtxToAeu},</if>
|
|
<if test="pguBtxToAeu != null">#{pguBtxToAeu},</if>
|
|
<if test="aromaticsRawInput != null">#{aromaticsRawInput},</if>
|
|
<if test="aromaticsRawInput != null">#{aromaticsRawInput},</if>
|
|
|
|
+ <if test="aeuBenzeneProduced != null">#{aeuBenzeneProduced},</if>
|
|
|
|
+ <if test="aeuTolueneProduced != null">#{aeuTolueneProduced},</if>
|
|
|
|
+ <if test="aeuXyleneProduced != null">#{aeuXyleneProduced},</if>
|
|
|
|
+ <if test="aeuC6C8NaProduced != null">#{aeuC6C8NaProduced},</if>
|
|
|
|
+ <if test="pguC5Produced != null">#{pguC5Produced},</if>
|
|
|
|
+ <if test="pguC9Produced != null">#{pguC9Produced},</if>
|
|
|
|
+ <if test="pguWashoilProduced != null">#{pguWashoilProduced},</if>
|
|
|
|
+ <if test="pguOffgasProduced != null">#{pguOffgasProduced},</if>
|
|
|
|
+ <if test="pguBtxChange != null">#{pguBtxChange},</if>
|
|
|
|
+ <if test="aeuTolueneProducedMEu != null">#{aeuTolueneProducedMEu},</if>
|
|
|
|
+ <if test="aromaticsOutput != null">#{aromaticsOutput},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -217,6 +259,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="pguBtxProduced != null">pgu_btx_produced = #{pguBtxProduced},</if>
|
|
<if test="pguBtxProduced != null">pgu_btx_produced = #{pguBtxProduced},</if>
|
|
<if test="pguBtxToAeu != null">pgu_btx_to_aeu = #{pguBtxToAeu},</if>
|
|
<if test="pguBtxToAeu != null">pgu_btx_to_aeu = #{pguBtxToAeu},</if>
|
|
<if test="aromaticsRawInput != null">aromatics_raw_input = #{aromaticsRawInput},</if>
|
|
<if test="aromaticsRawInput != null">aromatics_raw_input = #{aromaticsRawInput},</if>
|
|
|
|
+ <if test="aeuBenzeneProduced != null">aeu_benzene_produced = #{aeuBenzeneProduced},</if>
|
|
|
|
+ <if test="aeuTolueneProduced != null">aeu_toluene_produced = #{aeuTolueneProduced},</if>
|
|
|
|
+ <if test="aeuXyleneProduced != null">aeu_xylene_produced = #{aeuXyleneProduced},</if>
|
|
|
|
+ <if test="aeuC6C8NaProduced != null">aeu_c6_c8_na_produced = #{aeuC6C8NaProduced},</if>
|
|
|
|
+ <if test="pguC5Produced != null">pgu_c5_produced = #{pguC5Produced},</if>
|
|
|
|
+ <if test="pguC9Produced != null">pgu_c9_produced = #{pguC9Produced},</if>
|
|
|
|
+ <if test="pguWashoilProduced != null">pgu_washoil_produced = #{pguWashoilProduced},</if>
|
|
|
|
+ <if test="pguOffgasProduced != null">pgu_offgas_produced = #{pguOffgasProduced},</if>
|
|
|
|
+ <if test="pguBtxChange != null">pgu_btx_change = #{pguBtxChange},</if>
|
|
|
|
+ <if test="aeuTolueneProducedMEu != null">aeu_toluene_produced_m_eu = #{aeuTolueneProducedMEu},</if>
|
|
|
|
+ <if test="aromaticsOutput != null">aromatics_output = #{aromaticsOutput},</if>
|
|
</trim>
|
|
</trim>
|
|
where report_month = #{reportMonth} and report_year = #{reportYear}
|
|
where report_month = #{reportMonth} and report_year = #{reportYear}
|
|
</update>
|
|
</update>
|