Commit b607c433 by zhengxj

finish 修正代码 on 20190116 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@16670 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent c1249ea9
...@@ -47,10 +47,11 @@ public class SysMenuServiceImpl implements ISysMenuService { ...@@ -47,10 +47,11 @@ public class SysMenuServiceImpl implements ISysMenuService {
SysMenuExample example = new SysMenuExample(); SysMenuExample example = new SysMenuExample();
example.createCriteria().andParentIdEqualTo(id); example.createCriteria().andParentIdEqualTo(id);
List<SysMenu> list = menuDao.selectByExample(example); List<SysMenu> list = menuDao.selectByExample(example);
// 是否有子节点,如果没有子节点则删除
if (list == null || list.size() == 0) { if (list == null || list.size() == 0) {
return 0; return menuDao.deleteByPrimaryKey(id);
} }
return menuDao.deleteByPrimaryKey(id); return 0;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!