|
@@ -144,6 +144,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="runRate" column="run_rate" />
|
|
<result property="runRate" column="run_rate" />
|
|
<result property="calendarHour" column="calendar_hour" />
|
|
<result property="calendarHour" column="calendar_hour" />
|
|
<result property="calendarDay" column="calendar_day" />
|
|
<result property="calendarDay" column="calendar_day" />
|
|
|
|
+ <result property="crackerLoad" column="cracker_load" />
|
|
|
|
+ <result property="c2C3Capacity" column="c2_c3_capacity" />
|
|
|
|
+ <result property="ethyleneLoad" column="ethylene_load" />
|
|
|
|
+ <result property="ethyleneCapacity" column="ethylene_capacity" />
|
|
|
|
+ <result property="aeuLoad" column="aeu_load" />
|
|
|
|
+ <result property="btxCapacity" column="btx_capacity" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectCrackerRawMaterialByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult">
|
|
<select id="selectCrackerRawMaterialByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult">
|
|
@@ -247,7 +253,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where d.report_year = #{year}
|
|
where d.report_year = #{year}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="selectPlantLoadByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
|
|
|
|
+ <select id="selectPlantLoadByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult">
|
|
|
|
+ select
|
|
|
|
+ d.id, d.report_month, d.report_year,
|
|
|
|
+ d.cracker_load, d.c2_c3_capacity, d.ethylene_load,
|
|
|
|
+ d.ethylene_capacity, d.aeu_load, d.btx_capacity
|
|
|
|
+ from
|
|
|
|
+ t_monthly_production_report d
|
|
|
|
+ where d.report_year = #{year}
|
|
|
|
+ </select>
|
|
|
|
|
|
<select id="selectCostFrEthyleneByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
<select id="selectCostFrEthyleneByYear" parameterType="Long" resultMap="TMonthlyProductionReportResult"></select>
|
|
|
|
|
|
@@ -448,6 +462,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="runRate != null">run_rate,</if>
|
|
<if test="runRate != null">run_rate,</if>
|
|
<if test="calendarHour != null">calendar_hour,</if>
|
|
<if test="calendarHour != null">calendar_hour,</if>
|
|
<if test="calendarDay != null">calendar_day,</if>
|
|
<if test="calendarDay != null">calendar_day,</if>
|
|
|
|
+ <if test="crackerLoad != null">cracker_load,</if>
|
|
|
|
+ <if test="c2C3Capacity != null">c2_c3_capacity,</if>
|
|
|
|
+ <if test="ethyleneLoad != null">ethylene_load,</if>
|
|
|
|
+ <if test="ethyleneCapacity != null">ethylene_capacity,</if>
|
|
|
|
+ <if test="aeuLoad != null">aeu_load,</if>
|
|
|
|
+ <if test="btxCapacity != null">btx_capacity,</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>
|
|
@@ -589,6 +609,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="runRate != null">#{runRate},</if>
|
|
<if test="runRate != null">#{runRate},</if>
|
|
<if test="calendarHour != null">#{calendarHour},</if>
|
|
<if test="calendarHour != null">#{calendarHour},</if>
|
|
<if test="calendarDay != null">#{calendarDay},</if>
|
|
<if test="calendarDay != null">#{calendarDay},</if>
|
|
|
|
+ <if test="crackerLoad != null">#{crackerLoad},</if>
|
|
|
|
+ <if test="c2C3Capacity != null">#{c2C3Capacity},</if>
|
|
|
|
+ <if test="ethyleneLoad != null">#{ethyleneLoad},</if>
|
|
|
|
+ <if test="ethyleneCapacity != null">#{ethyleneCapacity},</if>
|
|
|
|
+ <if test="aeuLoad != null">#{aeuLoad},</if>
|
|
|
|
+ <if test="btxCapacity != null">#{btxCapacity},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -731,6 +757,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="runRate != null">run_rate = #{runRate},</if>
|
|
<if test="runRate != null">run_rate = #{runRate},</if>
|
|
<if test="calendarHour != null">calendar_hour = #{calendarHour},</if>
|
|
<if test="calendarHour != null">calendar_hour = #{calendarHour},</if>
|
|
<if test="calendarDay != null">calendar_day = #{calendarDay},</if>
|
|
<if test="calendarDay != null">calendar_day = #{calendarDay},</if>
|
|
|
|
+ <if test="crackerLoad != null">cracker_load = #{crackerLoad},</if>
|
|
|
|
+ <if test="c2C3Capacity != null">c2_c3_capacity = #{c2C3Capacity},</if>
|
|
|
|
+ <if test="ethyleneLoad != null">ethylene_load = #{ethyleneLoad},</if>
|
|
|
|
+ <if test="ethyleneCapacity != null">ethylene_capacity = #{ethyleneCapacity},</if>
|
|
|
|
+ <if test="aeuLoad != null">aeu_load = #{aeuLoad},</if>
|
|
|
|
+ <if test="btxCapacity != null">btx_capacity = #{btxCapacity},</if>
|
|
</trim>
|
|
</trim>
|
|
where report_month = #{reportMonth} and report_year = #{reportYear}
|
|
where report_month = #{reportMonth} and report_year = #{reportYear}
|
|
</update>
|
|
</update>
|