You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.nov.KgLowDurable.mapper.DepartmentMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap id="departmentResultMap" type="com.nov.KgLowDurable.pojo.entity.Department">
|
|
|
|
|
<id column="id" property="id"/>
|
|
|
|
|
<result column="name" property="name"/>
|
|
|
|
|
<result column="parentid" property="parentid"/>
|
|
|
|
|
<result column="order" property="order"/>
|
|
|
|
|
<result column="oa_id" property="oaId"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<select id="selectOnePutDepartment" resultType="com.nov.KgLowDurable.pojo.vo.DepartmentVO">
|
|
|
|
|
SELECT id as departmentId, name department
|
|
|
|
|
FROM t_department
|
|
|
|
|
WHERE parentid = 1
|
|
|
|
|
AND id NOT IN (12, 20, 50, 51, 52, 60);
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByDepartmentId" resultType="com.nov.KgLowDurable.pojo.entity.Department">
|
|
|
|
|
select * from t_department where id = #{departmentId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|