|
@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDeptVo">
|
|
|
- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
|
|
|
+ select d.dept_id, d.parent_id, d.ancestors, d.dept_name,d.dept_code, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
|
|
|
from sys_dept d
|
|
|
</sql>
|
|
|
|
|
@@ -87,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|
|
|
<if test="parentId != null and parentId != 0">parent_id,</if>
|
|
|
<if test="deptName != null and deptName != ''">dept_name,</if>
|
|
|
+ <if test="deptCode != null and deptCode != ''">dept_code,</if>
|
|
|
<if test="ancestors != null and ancestors != ''">ancestors,</if>
|
|
|
<if test="orderNum != null and orderNum != ''">order_num,</if>
|
|
|
<if test="leader != null and leader != ''">leader,</if>
|
|
@@ -99,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deptId != null and deptId != 0">#{deptId},</if>
|
|
|
<if test="parentId != null and parentId != 0">#{parentId},</if>
|
|
|
<if test="deptName != null and deptName != ''">#{deptName},</if>
|
|
|
+ <if test="deptCode != null and deptCode != ''">#{deptCode},</if>
|
|
|
<if test="ancestors != null and ancestors != ''">#{ancestors},</if>
|
|
|
<if test="orderNum != null and orderNum != ''">#{orderNum},</if>
|
|
|
<if test="leader != null and leader != ''">#{leader},</if>
|
|
@@ -115,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<set>
|
|
|
<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
|
|
|
<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
|
|
|
+ <if test="deptCode != null and deptCode != ''">dept_code = #{deptCode},</if>
|
|
|
<if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>
|
|
|
<if test="orderNum != null and orderNum != ''">order_num = #{orderNum},</if>
|
|
|
<if test="leader != null">leader = #{leader},</if>
|