|
|
@ -22,10 +22,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="updateTime" column="update_time" /> |
|
|
<result property="updateTime" column="update_time" /> |
|
|
<result property="type" column="type" /> |
|
|
<result property="type" column="type" /> |
|
|
<result property="abbr" column="abbr" /> |
|
|
<result property="abbr" column="abbr" /> |
|
|
|
|
|
<result property="jc" column="jc" /> |
|
|
|
|
|
<result property="showInSubject" column="show_in_subject" /> |
|
|
</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, d.type, d.abbr |
|
|
|
|
|
|
|
|
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,d.jc,d.show_in_subject |
|
|
from sys_dept d |
|
|
from sys_dept d |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
@ -101,6 +103,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<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> |
|
|
<if test="type != null and type != 0">`type`,</if> |
|
|
<if test="abbr != null and abbr != ''">`abbr`,</if> |
|
|
<if test="abbr != null and abbr != ''">`abbr`,</if> |
|
|
|
|
|
<if test="jc != null and jc != ''">`jc`,</if> |
|
|
|
|
|
<if test="showInSubject != null and showInSubject != 0">`show_in_subject`,</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> |
|
|
@ -115,6 +119,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<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> |
|
|
<if test="type != null and type != 0">#{type},</if> |
|
|
<if test="abbr != null and abbr != ''">#{abbr},</if> |
|
|
<if test="abbr != null and abbr != ''">#{abbr},</if> |
|
|
|
|
|
<if test="jc != null and jc != ''">#{jc},</if> |
|
|
|
|
|
<if test="showInSubject != null and showInSubject != 0">#{showInSubject},</if> |
|
|
sysdate() |
|
|
sysdate() |
|
|
) |
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
@ -133,6 +139,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<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> |
|
|
<if test="type != null and type != 0">`type` = #{type},</if> |
|
|
<if test="abbr != null and abbr != ''">`abbr` = #{abbr},</if> |
|
|
<if test="abbr != null and abbr != ''">`abbr` = #{abbr},</if> |
|
|
|
|
|
<if test="jc != null and jc != ''">`jc` = #{jc},</if> |
|
|
|
|
|
<if test="showInSubject != null and showInSubject != 0">`show_in_subject` = #{showInSubject},</if> |
|
|
update_time = sysdate() |
|
|
update_time = sysdate() |
|
|
</set> |
|
|
</set> |
|
|
where dept_id = #{deptId} |
|
|
where dept_id = #{deptId} |
|
|
|