|
|
|
@ -21,10 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
<result property="type" column="type" /> |
|
|
|
<result property="abbr" column="abbr" /> |
|
|
|
</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, d.type |
|
|
|
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, d.abbr |
|
|
|
from sys_dept d |
|
|
|
</sql> |
|
|
|
|
|
|
|
@ -99,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="status != null">status,</if> |
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if> |
|
|
|
<if test="type != null and type != 0">`type`,</if> |
|
|
|
<if test="abbr != null and abbr != ''">`abbr`,</if> |
|
|
|
create_time |
|
|
|
)values( |
|
|
|
<if test="deptId != null and deptId != 0">#{deptId},</if> |
|
|
|
@ -112,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="status != null">#{status},</if> |
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if> |
|
|
|
<if test="type != null and type != 0">#{type},</if> |
|
|
|
<if test="abbr != null and abbr != ''">#{abbr},</if> |
|
|
|
sysdate() |
|
|
|
) |
|
|
|
</insert> |
|
|
|
@ -129,6 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="status != null and status != ''">status = #{status},</if> |
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
|
|
|
<if test="type != null and type != 0">`type` = #{type},</if> |
|
|
|
<if test="abbr != null and abbr != ''">`abbr` = #{abbr},</if> |
|
|
|
update_time = sysdate() |
|
|
|
</set> |
|
|
|
where dept_id = #{deptId} |
|
|
|
|