|
|
@@ -20,10 +20,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="startDate" column="start_date" />
|
|
|
<result property="endDate" column="end_date" />
|
|
|
+ <result property="endPoint" column="end_point" />
|
|
|
+ <result property="pressureDifference" column="pressure_difference" />
|
|
|
+ <result property="production" column="production" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTMonthlyQualityReportS2007Vo">
|
|
|
- select d.id, d.location_name, d.sample_point, d.sample_date, d.sample_name, d.viscosity, 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_s2007 d
|
|
|
+ select d.id, d.end_point, d.pressure_difference, d.production, d.location_name, d.sample_point, d.sample_date, d.sample_name, d.viscosity, 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_s2007 d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
|
|
|
|
@@ -38,6 +41,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sampleName != null and sampleName != ''"> and sample_name like concat(concat('%', #{sampleName}), '%')</if>
|
|
|
<if test="viscosity != null and viscosity != ''"> and viscosity = #{viscosity}</if>
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
+ <if test="endPoint != null "> and end_point = #{endPoint}</if>
|
|
|
+ <if test="pressureDifference != null "> and pressure_difference = #{pressureDifference}</if>
|
|
|
+ <if test="production != null "> and production = #{production}</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
@@ -67,6 +73,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="endPoint != null">end_point,</if>
|
|
|
+ <if test="pressureDifference != null">pressure_difference,</if>
|
|
|
+ <if test="production != null">production,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
@@ -81,6 +90,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="endPoint != null">#{endPoint},</if>
|
|
|
+ <if test="pressureDifference != null">#{pressureDifference},</if>
|
|
|
+ <if test="production != null">#{production},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -98,6 +110,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="endPoint != null">end_point = #{endPoint},</if>
|
|
|
+ <if test="pressureDifference != null">pressure_difference = #{pressureDifference},</if>
|
|
|
+ <if test="production != null">production = #{production},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|