|
@@ -27,10 +27,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="confirm1Name" column="confirm1_name" />
|
|
|
<result property="confirm2Name" column="confirm2_name" />
|
|
|
+ <result property="dewPoint" column="dew_point" />
|
|
|
+ <result property="dewPointValue" column="dew_point_value" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTPssrNitrogenVo">
|
|
|
- select d.id, u1.nick_name confirm1_name, u2.nick_name confirm2_name, d.sub_id, d.approve_id, d.system_name, d.sampling_date, d.sample_name, d.oxygen, d.standard, d.confirm1, d.confirm2, d.confirmation_date, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.approve_status ,s.dept_name from t_pssr_nitrogen d
|
|
|
+ select d.id, d.dew_point, d.dew_point_value, u1.nick_name confirm1_name, u2.nick_name confirm2_name, d.sub_id, d.approve_id, d.system_name, d.sampling_date, d.sample_name, d.oxygen, d.standard, d.confirm1, d.confirm2, d.confirmation_date, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.approve_status ,s.dept_name from t_pssr_nitrogen d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
left join sys_user u1 on u1.user_id = d.CONFIRM1
|
|
|
left join sys_user u2 on u2.user_id = d.CONFIRM2
|
|
@@ -56,6 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
|
<if test="approveStatus != null "> and approve_status = #{approveStatus}</if>
|
|
|
+ <if test="dewPoint != null "> and dew_point = #{dewPoint}</if>
|
|
|
+ <if test="dewPointValue != null "> and dew_point_value = #{dewPointValue}</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
@@ -92,6 +96,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
<if test="remarks != null">remarks,</if>
|
|
|
<if test="approveStatus != null">approve_status,</if>
|
|
|
+ <if test="dewPoint != null">dew_point,</if>
|
|
|
+ <if test="dewPointValue != null">dew_point_value,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -113,6 +119,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
<if test="remarks != null">#{remarks},</if>
|
|
|
<if test="approveStatus != null">#{approveStatus},</if>
|
|
|
+ <if test="dewPoint != null">#{dewPoint},</if>
|
|
|
+ <if test="dewPointValue != null">#{dewPointValue},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -137,6 +145,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|
|
|
<if test="approveStatus != null">approve_status = #{approveStatus},</if>
|
|
|
+ <if test="dewPoint != null">dew_point = #{dewPoint},</if>
|
|
|
+ <if test="dewPointValue != null">dew_point_value = #{dewPointValue},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|