| 12345678910111213141516171819202122232425262728 |
- <?xml version="1.0" encoding="UTF-8"?>
- <codebooks>
- <codebook name="department" desc="部门" >
- <sql>
- <![CDATA[ SELECT departmentid, name FROM department where unitid = :unitid ]]>
- </sql>
- <param name="unitid" value="getUnitId()" scope="defined" />
- <where name="enable" desc="在用" >
- <sql>
- <![CDATA[ and dcode = 61 ]]>
- </sql>
- </where>
- <sort>
- <![CDATA[ order by dcode asc, sort_number asc ]]>
- </sort>
- </codebook>
- <codebook name="departmentByPost" desc="部门(通过岗位查询)" >
- <show text="departmentid" value="name" />
- <sql>
- <![CDATA[ select d.departmentid, d.name, p.postid from department d, post p where d.departmentid = p.departmentid and unitid = :unitid ]]>
- </sql>
- <param name="unitid" value="getUnitId()" scope="defined" />
- <sort>
- <![CDATA[ order by p.sort_number asc ]]>
- </sort>
- </codebook>
- </codebooks>
|