DeptService extends BaseService<Dept,Long,DeptRepository> { public void deleteDept(Long deptId) { Dept dept = get(deptId); List<Dept> subDepts = deptRepository.findByPidsLike("%[" + dept.getId() + "]%"); deptRepository.deleteAll(subDepts); deptRepository.delete(dept); }  List<ZTreeNode> tree(); List<Dept> query(String condition); void deleteDept(Long deptId); List<DeptNode> queryAllNode(); void deptSetPids(Dept dept);  }
@Test public void deleteDept() throws Exception { }