|
@@ -33,10 +33,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="status" column="status" />
|
|
|
<result property="team" column="team" />
|
|
|
<result property="photoUrl" column="photo_url" />
|
|
|
+ <result property="recorder" column="recorder" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTFurnancePressureVo">
|
|
|
- select d.id, d.team, d.photo_url, d.status, d.furnance_name, d.record_time, d.pass1, d.pass2, d.pass3, d.pass4, d.pass5, d.pass6, d.pass7, d.pass8, d.pass9, d.pass10, d.pass11, d.pass12, d.pass13, d.pass14, d.pass15, d.pass16, d.dept_id, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time from t_furnance_pressure d
|
|
|
+ select d.id, d.recorder, d.team, d.photo_url, d.status, d.furnance_name, d.record_time, d.pass1, d.pass2, d.pass3, d.pass4, d.pass5, d.pass6, d.pass7, d.pass8, d.pass9, d.pass10, d.pass11, d.pass12, d.pass13, d.pass14, d.pass15, d.pass16, d.dept_id, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time from t_furnance_pressure d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
|
|
|
@@ -68,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
<if test="team != null "> and team = #{team}</if>
|
|
|
<if test="photoUrl != null "> and photo_url = #{photoUrl}</if>
|
|
|
+ <if test="recorder != null and recorder != 0"> and recorder = #{recorder}</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
@@ -126,6 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="team != null">team,</if>
|
|
|
<if test="photoUrl != null">photo_url,</if>
|
|
|
+ <if test="recorder != null and recorder != 0">recorder,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -156,6 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="team != null">#{team},</if>
|
|
|
<if test="photoUrl != null">#{photoUrl},</if>
|
|
|
+ <if test="recorder != null and recorder != 0">#{recorder},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -189,6 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="team != null">team = #{team},</if>
|
|
|
<if test="photoUrl != null">photo_url = #{photoUrl},</if>
|
|
|
+ <if test="recorder != null and recorder != 0">recorder = #{recorder},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|