use of tk.ainiyue.danyuan.application.softm.sysmenu.vo.AuthorityzTreeVO in project danyuan-application by 514840279.
the class SysMenuServiceImpl method updateAuthorityName.
/**
* 方法名 : updateAuthorityName
* 功 能 : TODO(这里用一句话描述这个方法的作用)
* 参 数 : @param authority
* 参 数 : @return
* 参 考 : @see
* tk.ainiyue.danyuan.application.authority.service.AuthorityService#updateAuthorityName(tk.ainiyue.danyuan.application.authority.po.Authority)
* 作 者 : wang
*/
@Override
public AuthorityzTreeVO updateAuthorityName(SysMenuInfo sysMenuInfo) {
sysMenuDao.updateSysMenuInfoName(sysMenuInfo.getName(), sysMenuInfo.getUuid());
AuthorityzTreeVO vo = new AuthorityzTreeVO();
vo.setId(sysMenuInfo.getUuid());
vo.setName(sysMenuInfo.getName());
vo.setIconSkin(sysMenuInfo.getIcon());
return vo;
}
use of tk.ainiyue.danyuan.application.softm.sysmenu.vo.AuthorityzTreeVO in project danyuan-application by 514840279.
the class SysMenuServiceImpl method findzTreeByF_ParentId.
/**
* 方法名 : findzTreeByF_ParentId
* 功 能 : TODO(这里用一句话描述这个方法的作用)
* 参 数 : @param string
* 参 数 : @return
* 参 考 : @see
* tk.ainiyue.danyuan.application.authority.service.AuthorityService#findzTreeByF_ParentId(java.lang.String)
* 作 者 : wang
*/
@Override
public List<AuthorityzTreeVO> findzTreeByF_ParentId(String id) {
List<AuthorityzTreeVO> list = null;
List<SysMenuInfo> listt = sysMenuDao.findAllByParentsIdOrderByF_SortCode(id);
if (listt != null && listt.size() > 0) {
list = new ArrayList<>();
for (SysMenuInfo sysMenuInfo : listt) {
AuthorityzTreeVO vo = new AuthorityzTreeVO();
vo.setId(sysMenuInfo.getUuid());
vo.setName(sysMenuInfo.getName());
vo.setIcon(sysMenuInfo.getIcon());
vo.setUrl(sysMenuInfo.getUri());
List<AuthorityzTreeVO> listt1 = findzTreeByF_ParentId(sysMenuInfo.getUuid());
if (listt1 != null) {
vo.getChildren().addAll(listt1);
}
list.add(vo);
}
}
return list;
}
Aggregations