|
@@ -21,10 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="saiApplyId" column="sai_apply_id" />
|
|
|
+ <result property="applicant" column="applicant" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTSaiVo">
|
|
|
- select d.sai_id, d.plant_id, d.inspection_date, d.dificiency, d.sai_level, d.category, d.actions, d.user_dept, d.source, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time ,d.dept_id, d.sai_apply_id, s.dept_name from t_sai d
|
|
|
+ select d.sai_id, d.plant_id, d.inspection_date, d.dificiency, d.sai_level, d.category, d.actions, d.user_dept, d.source, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time ,d.dept_id, d.sai_apply_id, d.applicant, s.dept_name from t_sai d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
|
|
|
@@ -53,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userDept != null and userDept != ''"> and user_dept = #{userDept}</if>
|
|
|
<if test="source != null and source != ''"> and source = #{source}</if>
|
|
|
<if test="saiApplyId != null "> and sai_apply_id = #{saiApplyId}</if>
|
|
|
+ <if test="applicant != null "> and applicant = #{applicant}</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
@@ -86,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
<if test="saiApplyId != null">sai_apply_id,</if>
|
|
|
+ <if test="applicant != null">applicant,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="saiId != null">#{saiId},</if>
|
|
@@ -104,6 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
<if test="saiApplyId != null">#{saiApplyId},</if>
|
|
|
+ <if test="applicant != null">#{applicant},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -124,6 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="saiApplyId != null">sai_apply_id = #{saiApplyId},</if>
|
|
|
+ <if test="applicant != null">applicant = #{applicant},</if>
|
|
|
</trim>
|
|
|
where sai_id = #{saiId}
|
|
|
</update>
|