|
@@ -28,10 +28,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="startDate" column="start_date" />
|
|
<result property="startDate" column="start_date" />
|
|
<result property="endDate" column="end_date" />
|
|
<result property="endDate" column="end_date" />
|
|
<result property="totalSulfur150" column="total_sulfur150" />
|
|
<result property="totalSulfur150" column="total_sulfur150" />
|
|
|
|
+ <result property="c4" column="c4" />
|
|
|
|
+ <result property="c410" column="c410" />
|
|
|
|
+ <result property="c250" column="c250" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTMonthlyQualityReportS6301Vo">
|
|
<sql id="selectTMonthlyQualityReportS6301Vo">
|
|
- select d.id, d.total_sulfur150, d.location_name, d.sample_point, d.sample_date, d.sample_name, d.ic5, d.dcpd, d.c5, d.c5_conjugated_dienes_dcpd_30, d.pentadiene_cycc5, d.c5_conjugated_dienes_dcpd_40, d.total_sulfur, d.silicon, d.dept_id, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time ,s.dept_name from t_monthly_quality_report_s6301 d
|
|
|
|
|
|
+ select d.id, d.c4, d.c410, d.c250, d.total_sulfur150, d.location_name, d.sample_point, d.sample_date, d.sample_name, d.ic5, d.dcpd, d.c5, d.c5_conjugated_dienes_dcpd_30, d.pentadiene_cycc5, d.c5_conjugated_dienes_dcpd_40, d.total_sulfur, d.silicon, d.dept_id, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time ,s.dept_name from t_monthly_quality_report_s6301 d
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -54,6 +57,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="silicon != null and silicon != ''"> and silicon = #{silicon}</if>
|
|
<if test="silicon != null and silicon != ''"> and silicon = #{silicon}</if>
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
<if test="totalSulfur150 != null "> and total_sulfur150 = #{totalSulfur150}</if>
|
|
<if test="totalSulfur150 != null "> and total_sulfur150 = #{totalSulfur150}</if>
|
|
|
|
+ <if test="c4 != null "> and c4 = #{c4}</if>
|
|
|
|
+ <if test="c410 != null "> and c410 = #{c410}</if>
|
|
|
|
+ <if test="c250 != null "> and c250 = #{c250}</if>
|
|
and d.del_flag = 0
|
|
and d.del_flag = 0
|
|
</where>
|
|
</where>
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
@@ -91,6 +97,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="totalSulfur150 != null">total_sulfur150,</if>
|
|
<if test="totalSulfur150 != null">total_sulfur150,</if>
|
|
|
|
+ <if test="c4 != null">c4,</if>
|
|
|
|
+ <if test="c410 != null">c410,</if>
|
|
|
|
+ <if test="c250 != null">c250,</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>
|
|
@@ -113,6 +122,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="totalSulfur150 != null">#{totalSulfur150},</if>
|
|
<if test="totalSulfur150 != null">#{totalSulfur150},</if>
|
|
|
|
+ <if test="c4 != null">#{c4},</if>
|
|
|
|
+ <if test="c410 != null">#{c410},</if>
|
|
|
|
+ <if test="c250 != null">#{c250},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -138,6 +150,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="totalSulfur150 != null">total_sulfur150 = #{totalSulfur150},</if>
|
|
<if test="totalSulfur150 != null">total_sulfur150 = #{totalSulfur150},</if>
|
|
|
|
+ <if test="c4 != null">c4 = #{c4},</if>
|
|
|
|
+ <if test="c410 != null">c410 = #{c410},</if>
|
|
|
|
+ <if test="c250 != null">c250 = #{c250},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|