|
|
@ -20,10 +20,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="updateBy" column="update_by" /> |
|
|
<result property="updateBy" column="update_by" /> |
|
|
<result property="updateTime" column="update_time" /> |
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
|
|
<result property="type" column="type" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectDeptVo"> |
|
|
<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.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time, d.type |
|
|
from sys_dept d |
|
|
from sys_dept d |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
@ -96,7 +97,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="phone != null and phone != ''">phone,</if> |
|
|
<if test="phone != null and phone != ''">phone,</if> |
|
|
<if test="email != null and email != ''">email,</if> |
|
|
<if test="email != null and email != ''">email,</if> |
|
|
<if test="status != null">status,</if> |
|
|
<if test="status != null">status,</if> |
|
|
<if test="createBy != null and createBy != ''">create_by,</if> |
|
|
|
|
|
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if> |
|
|
|
|
|
<if test="type != null and type != 0">`type`,</if> |
|
|
create_time |
|
|
create_time |
|
|
)values( |
|
|
)values( |
|
|
<if test="deptId != null and deptId != 0">#{deptId},</if> |
|
|
<if test="deptId != null and deptId != 0">#{deptId},</if> |
|
|
@ -108,7 +110,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="phone != null and phone != ''">#{phone},</if> |
|
|
<if test="phone != null and phone != ''">#{phone},</if> |
|
|
<if test="email != null and email != ''">#{email},</if> |
|
|
<if test="email != null and email != ''">#{email},</if> |
|
|
<if test="status != null">#{status},</if> |
|
|
<if test="status != null">#{status},</if> |
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if> |
|
|
|
|
|
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if> |
|
|
|
|
|
<if test="type != null and type != 0">#{type},</if> |
|
|
sysdate() |
|
|
sysdate() |
|
|
) |
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
@ -124,7 +127,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="phone != null">phone = #{phone},</if> |
|
|
<if test="phone != null">phone = #{phone},</if> |
|
|
<if test="email != null">email = #{email},</if> |
|
|
<if test="email != null">email = #{email},</if> |
|
|
<if test="status != null and status != ''">status = #{status},</if> |
|
|
<if test="status != null and status != ''">status = #{status},</if> |
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
|
|
|
|
|
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
|
|
|
|
|
<if test="type != null and type != 0">`type` = #{type},</if> |
|
|
update_time = sysdate() |
|
|
update_time = sysdate() |
|
|
</set> |
|
|
</set> |
|
|
where dept_id = #{deptId} |
|
|
where dept_id = #{deptId} |
|
|
|