|
@@ -28,10 +28,11 @@ 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="warnFlag" column="warn_flag" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTPssrVesselVo">
|
|
|
- select u1.nick_name confirm1_name, u2.nick_name confirm2_name,d.approve_status, d.unit, d.vessel_name, d.vessel_no, d.checked, d.require, d.validity, d.confirmer1, d.confirmer2, d.confirmation_date, d.remarks, d.sub_id, d.id, d.approve_id, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id ,s.dept_name from t_pssr_vessel d
|
|
|
+ select u1.nick_name confirm1_name, u2.nick_name confirm2_name,d.approve_status, d.unit, d.vessel_name, d.vessel_no, d.checked, d.require, d.validity, d.confirmer1, d.confirmer2, d.confirmation_date, d.remarks, d.sub_id, d.id, d.approve_id, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id ,s.dept_name,d.warn_flag from t_pssr_vessel d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
left join sys_user u1 on u1.user_id = d.CONFIRMER1
|
|
|
left join sys_user u2 on u2.user_id = d.CONFIRMER2
|
|
@@ -106,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updaterCode != null">updater_code,</if>
|
|
|
<if test="updatedate != null">updatedate,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
+ <if test="warnFlag != null">warn_flag,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="approveStatus != null">#{approveStatus},</if>
|
|
@@ -128,6 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updaterCode != null">#{updaterCode},</if>
|
|
|
<if test="updatedate != null">#{updatedate},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
+ <if test="warnFlag != null">#{warnFlag},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -163,6 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updaterCode != null">updater_code = #{updaterCode},</if>
|
|
|
<if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
+ <if test="warnFlag != null">warn_flag = #{warnFlag},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|