|
@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="ancestors" column="ancestors" />
|
|
|
+ <result property="isHf" column="is_hf" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
@@ -20,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectZsyzProjectDeptVo">
|
|
|
- select id, xm_id, xmbh, xmmc, dept_id, dept_name, ancestors, create_by, create_time, update_by, update_time, remark from zsyz_project_dept
|
|
|
+ select id, xm_id, xmbh, xmmc, dept_id, dept_name, ancestors,is_hf, create_by, create_time, update_by, update_time, remark from zsyz_project_dept
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectZsyzProjectDeptList" parameterType="ZsyzProjectDept" resultMap="ZsyzProjectDeptResult">
|
|
@@ -30,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="xmbh != null and xmbh != ''"> and xmbh = #{xmbh}</if>
|
|
|
<if test="xmmc != null and xmmc != ''"> and xmmc = #{xmmc}</if>
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
+ <if test="isHf != null and isHf != ''"> and is_hf = #{isHf}</if>
|
|
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
<if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if>
|
|
|
</where>
|
|
@@ -49,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
<if test="ancestors != null">ancestors,</if>
|
|
|
+ <if test="isHf != null">is_hf,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -62,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
<if test="ancestors != null">#{ancestors},</if>
|
|
|
+ <if test="isHf != null">#{isHf},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -79,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
|
|
<if test="ancestors != null">ancestors = #{ancestors},</if>
|
|
|
+ <if test="isHf != null and is_hf != ''">is_hf = #{isHf},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
@@ -87,6 +92,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
+ <update id="updateZsyzProjectDeptByXmId" parameterType="ZsyzProjectDept">
|
|
|
+ update zsyz_project_dept ser is_hf = 'Y' where xm_id = #{xmId} and dept_id = #{deptId}
|
|
|
+ </update>
|
|
|
|
|
|
<delete id="deleteZsyzProjectDeptById" parameterType="Long">
|
|
|
delete from zsyz_project_dept where id = #{id}
|