|
@@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="TDailyProductionReport" id="TDailyProductionReportResult">
|
|
|
<result property="id" column="id" />
|
|
|
+ <result property="offgasToGaaCaa" column="offgas_to_gaa_caa" />
|
|
|
<result property="col320fc2161" column="col_320fc2161" />
|
|
|
<result property="c210pdi" column="c210pdi" />
|
|
|
<result property="temperature" column="temperature" />
|
|
@@ -544,7 +545,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<sql id="selectTDailyProductionReportVo">
|
|
|
select
|
|
|
- d.id, d.from_date, d.to_date, d.report_date, d.nap, d.c5, d.c6_c8_na, d.wison_ethane, d.lpg_to_furnace, d.raff1_fr_bd, d.raff2_fr_ib,
|
|
|
+ d.id, d.offgas_to_gaa_caa, d.from_date, d.to_date, d.report_date, d.nap, d.c5, d.c6_c8_na, d.wison_ethane, d.lpg_to_furnace, d.raff1_fr_bd, d.raff2_fr_ib,
|
|
|
d.raff3_fr_bd, d.raffinate2p_fr_2ph, d.c2_fr_ldpe, d.c3_fr_oxo, d.mixed_c3_c4, d.hy_c9, d.pgu_offgas, d.wash_oil, d.toluene, d.hy_c4_fr_r800,
|
|
|
d.h2_yield_percentage, d.h2_produced, d.h2_inventory, d.h2_change, d.h2_import, d.h2_export, d.h2_to_pgu, d.h2_to_ypc, d.h2_to_oxo,
|
|
|
d.h2_fr_syngas_to_sub, d.ethylen_yield_percentage, d.ethylen_produced, d.ethylen_inventory, d.ethylen_change, d.ethylen_import, d.ethylen_export,
|
|
@@ -634,6 +635,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectTDailyProductionReportVo"/>
|
|
|
<where>
|
|
|
<if test="fromDate != null "> and from_date = #{fromDate}</if>
|
|
|
+ <if test="offgasToGaaCaa != null "> and offgas_to_gaa_caa = #{offgasToGaaCaa}</if>
|
|
|
<if test="toDate != null "> and to_date = #{toDate}</if>
|
|
|
<if test="reportDate != null "> and report_date = #{reportDate}</if>
|
|
|
<if test="nap != null and nap != ''"> and nap = #{nap}</if>
|
|
@@ -1180,6 +1182,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">id,</if>
|
|
|
<if test="col320fc2161 != null">col_320fc2161,</if>
|
|
|
+ <if test="offgasToGaaCaa != null">offgas_to_gaa_caa,</if>
|
|
|
<if test="c210pdi != null">c210pdi,</if>
|
|
|
<if test="temperature != null">temperature,</if>
|
|
|
<if test="crackingFurnaceBurn != null">cracking_furnace_burn,</if>
|
|
@@ -1716,6 +1719,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
<if test="col320fc2161 != null">#{col320fc2161},</if>
|
|
|
+ <if test="offgasToGaaCaa != null">#{offgasToGaaCaa},</if>
|
|
|
<if test="c210pdi != null">#{c210pdi},</if>
|
|
|
<if test="temperature != null">#{temperature},</if>
|
|
|
<if test="crackingFurnaceBurn != null">#{crackingFurnaceBurn},</if>
|
|
@@ -2258,6 +2262,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateTDailyProductionReport" parameterType="TDailyProductionReport">
|
|
|
update t_daily_production_report
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="offgasToGaaCaa != null">offgas_to_gaa_caa = #{offgasToGaaCaa},</if>
|
|
|
<if test="pguC5RaffInput != null">pgu_c5_raff_input = #{pguC5RaffInput},</if>
|
|
|
<if test="col320fc2161 != null">col_320fc2161 = #{col320fc2161},</if>
|
|
|
<if test="c210pdi != null">c210pdi = #{c210pdi},</if>
|
|
@@ -2799,6 +2804,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateTDailyProductionReportByReportDate" parameterType="TDailyProductionReport">
|
|
|
update t_daily_production_report
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="offgasToGaaCaa != null">offgas_to_gaa_caa = #{offgasToGaaCaa},</if>
|
|
|
<if test="pguC5RaffInput != null">pgu_c5_raff_input = #{pguC5RaffInput},</if>
|
|
|
<if test="col320fc2161 != null">col_320fc2161 = #{col320fc2161},</if>
|
|
|
<if test="c210pdi != null">c210pdi = #{c210pdi},</if>
|