Java Code Examples for com.ruoyi.system.domain.SysDept#setParentId()
The following examples show how to use
com.ruoyi.system.domain.SysDept#setParentId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SysDeptServiceImpl.java From supplierShop with MIT License | 5 votes |
/** * 查询部门人数 * * @param parentId 部门ID * @return 结果 */ @Override public int selectDeptCount(Long parentId) { SysDept dept = new SysDept(); dept.setParentId(parentId); return deptMapper.selectDeptCount(dept); }
Example 2
Source File: SysDeptServiceImpl.java From ruoyiplus with MIT License | 5 votes |
/** * 查询部门人数 * * @param parentId 部门ID * @return 结果 */ @Override public int selectDeptCount(Long parentId) { SysDept dept = new SysDept(); dept.setParentId(parentId); return deptMapper.selectDeptCount(dept); }
Example 3
Source File: SysDeptServiceImpl.java From ruoyiplus with MIT License | 5 votes |
/** * 修改子元素关系 * * @param deptId 部门ID * @param ancestors 元素列表 */ public void updateDeptChildren(Long deptId, String ancestors) { SysDept dept = new SysDept(); dept.setParentId(deptId); List<SysDept> childrens = deptMapper.selectDeptList(dept); for (SysDept children : childrens) { children.setAncestors(ancestors + "," + dept.getParentId()); } if (childrens.size() > 0) { deptMapper.updateDeptChildren(childrens); } }
Example 4
Source File: SysDeptServiceImpl.java From RuoYi with Apache License 2.0 | 5 votes |
/** * 查询部门人数 * * @param parentId 部门ID * @return 结果 */ @Override public int selectDeptCount(Long parentId) { SysDept dept = new SysDept(); dept.setParentId(parentId); return deptMapper.selectDeptCount(dept); }