You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
951 B
XML
27 lines
951 B
XML
3 years ago
|
<?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.engine.organization.mapper.department.DepartmentMapper">
|
||
|
|
||
|
|
||
|
<select id="getDeptListByCompId" resultType="com.engine.organization.entity.department.po.DepartmentPO">
|
||
|
select t.id,t.dept_name,t.parent_dept,t.dept_principal
|
||
|
from jcl_org_dept t
|
||
|
where delete_type = 0
|
||
|
and parent_comp = #{parentComp}
|
||
|
</select>
|
||
|
|
||
|
<select id="getDeptListByPId" resultType="com.engine.organization.entity.department.po.DepartmentPO">
|
||
|
select t.id,t.dept_name,t.parent_dept,t.dept_principal
|
||
|
from jcl_org_dept t
|
||
|
where delete_type = 0
|
||
|
and parent_dept = #{PId}
|
||
|
</select>
|
||
|
|
||
|
<select id="getDeptNameById" resultType="string">
|
||
|
select t.dept_name
|
||
|
from jcl_org_dept t
|
||
|
where id = #{id}
|
||
|
</select>
|
||
|
|
||
|
|
||
|
</mapper>
|