查询部门下面的用户 及子部门下面用户
cnd条件为
cnd.where().andInBySql("dept_id","SELECT dept_id FROM sys_dept WHERE FIND_IN_SET ('%%%s%%',ancestors)", deptId).or("dept_id","=", deptId);
输出SQL为
For example:> "SELECT * FROM sys_user WHERE dept_id IN (SELECT dept_id FROM sys_dept WHERE FIND_IN_SET ('%100%',ancestors)) OR dept_id='100' LIMIT 0, 10 "