|
|
@ -357,8 +357,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 菜单路由转换 |
|
|
|
* 菜单路由转换 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param childPerms |
|
|
|
* @param childPerms 树状菜单信息 |
|
|
|
* 树状菜单信息 |
|
|
|
|
|
|
|
* @return 转换后路由信息 |
|
|
|
* @return 转换后路由信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private List<RouterVo> toRouter(List<SysMenuEntity> childPerms) { |
|
|
|
private List<RouterVo> toRouter(List<SysMenuEntity> childPerms) { |
|
|
@ -462,11 +461,17 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
for (SysDeptEntity sysDeptEntity : queryDept) { |
|
|
|
for (SysDeptEntity sysDeptEntity : queryDept) { |
|
|
|
String orgCode = sysDeptEntity.getOrgCode(); |
|
|
|
String orgCode = sysDeptEntity.getOrgCode(); |
|
|
|
if (StringUtils.isNotBlank(orgCode) && orgCode.contains("旧")) { |
|
|
|
if (StringUtils.isNotBlank(orgCode) && orgCode.contains("旧")) { |
|
|
|
oldTaxOrgCode.add(toTaxOrgCode(sysDeptEntity)); |
|
|
|
TaxOrgCode taxOrgCode = toTaxOrgCode(sysDeptEntity); |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(taxOrgCode.getTaxno())) { |
|
|
|
|
|
|
|
oldTaxOrgCode.add(taxOrgCode); |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
TaxOrgCode taxOrgCode = toTaxOrgCode(sysDeptEntity); |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(taxOrgCode.getTaxno())) { |
|
|
|
orgCodeList.add(toTaxOrgCode(sysDeptEntity)); |
|
|
|
orgCodeList.add(toTaxOrgCode(sysDeptEntity)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
orgCodeList.addAll(oldTaxOrgCode); |
|
|
|
orgCodeList.addAll(oldTaxOrgCode); |
|
|
|
qsStatus = queryDept.get(0).getQsStatus(); |
|
|
|
qsStatus = queryDept.get(0).getQsStatus(); |
|
|
|
productType = queryDept.get(0).getProductType(); |
|
|
|
productType = queryDept.get(0).getProductType(); |
|
|
@ -479,12 +484,14 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
|
|
|
|
|
|
|
|
private TaxOrgCode toTaxOrgCode(SysDeptEntity sysDeptEntity) { |
|
|
|
private TaxOrgCode toTaxOrgCode(SysDeptEntity sysDeptEntity) { |
|
|
|
TaxOrgCode orgCode = new TaxOrgCode(); |
|
|
|
TaxOrgCode orgCode = new TaxOrgCode(); |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(sysDeptEntity.getTaxno())) { |
|
|
|
orgCode.setTaxno(sysDeptEntity.getTaxno()); |
|
|
|
orgCode.setTaxno(sysDeptEntity.getTaxno()); |
|
|
|
orgCode.setTaxname(sysDeptEntity.getTaxname()); |
|
|
|
orgCode.setTaxname(sysDeptEntity.getTaxname()); |
|
|
|
orgCode.setOrgCode(sysDeptEntity.getOrgCode()); |
|
|
|
orgCode.setOrgCode(sysDeptEntity.getOrgCode()); |
|
|
|
orgCode.setCompany(sysDeptEntity.getCompany()); |
|
|
|
orgCode.setCompany(sysDeptEntity.getCompany()); |
|
|
|
orgCode.setAreaCode(sysDeptEntity.getAreaCode()); |
|
|
|
orgCode.setAreaCode(sysDeptEntity.getAreaCode()); |
|
|
|
orgCode.setIsPassword(sysDeptEntity.getIsPassword()); |
|
|
|
orgCode.setIsPassword(sysDeptEntity.getIsPassword()); |
|
|
|
|
|
|
|
} |
|
|
|
return orgCode; |
|
|
|
return orgCode; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -649,8 +656,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 构建前端路由所需要的菜单 |
|
|
|
* 构建前端路由所需要的菜单 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param menus |
|
|
|
* @param menus 菜单列表 |
|
|
|
* 菜单列表 |
|
|
|
|
|
|
|
* @return 路由列表 |
|
|
|
* @return 路由列表 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public List<RouterVo> buildMenus(List<SysMenuEntity> menus) { |
|
|
|
public List<RouterVo> buildMenus(List<SysMenuEntity> menus) { |
|
|
@ -700,8 +706,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 构建前端路由所需要的菜单 |
|
|
|
* 构建前端路由所需要的菜单 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param menus |
|
|
|
* @param menus 菜单列表 |
|
|
|
* 菜单列表 |
|
|
|
|
|
|
|
* @return 路由列表 |
|
|
|
* @return 路由列表 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public List<RouterVo> buildMenusSystem(List<SysMenuEntity> menus) { |
|
|
|
public List<RouterVo> buildMenusSystem(List<SysMenuEntity> menus) { |
|
|
@ -754,8 +759,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 转换按钮信息 |
|
|
|
* 转换按钮信息 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param sysMenuEntity |
|
|
|
* @param sysMenuEntity 菜单信息 |
|
|
|
* 菜单信息 |
|
|
|
|
|
|
|
* @return 按钮信息 |
|
|
|
* @return 按钮信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public ButtonQueryVo toButtonQuery(SysMenuEntity sysMenuEntity) { |
|
|
|
public ButtonQueryVo toButtonQuery(SysMenuEntity sysMenuEntity) { |
|
|
@ -782,10 +786,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 根据父节点的ID获取所有子节点 |
|
|
|
* 根据父节点的ID获取所有子节点 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param list |
|
|
|
* @param list 分类表 |
|
|
|
* 分类表 |
|
|
|
* @param parentId 传入的父节点ID |
|
|
|
* @param parentId |
|
|
|
|
|
|
|
* 传入的父节点ID |
|
|
|
|
|
|
|
* @return String |
|
|
|
* @return String |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -812,10 +814,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 递归列表 |
|
|
|
* 递归列表 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param list |
|
|
|
* @param list 菜单列 |
|
|
|
* 菜单列 |
|
|
|
* @param t 菜单信息 |
|
|
|
* @param t |
|
|
|
|
|
|
|
* 菜单信息 |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void recursionFn(List<SysMenuEntity> list, SysMenuEntity t) { |
|
|
|
private void recursionFn(List<SysMenuEntity> list, SysMenuEntity t) { |
|
|
|
// 得到子节点列表
|
|
|
|
// 得到子节点列表
|
|
|
@ -854,8 +854,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 是否为系统信息 |
|
|
|
* 是否为系统信息 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param menu |
|
|
|
* @param menu 菜单信息 |
|
|
|
* 菜单信息 |
|
|
|
|
|
|
|
* @return 结果 |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean isMeunFrame(SysMenuEntity menu) { |
|
|
|
public boolean isMeunFrame(SysMenuEntity menu) { |
|
|
@ -865,8 +864,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUserEntity> i |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 菜单信息 |
|
|
|
* 菜单信息 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param menuEntities |
|
|
|
* @param menuEntities 菜单信息 |
|
|
|
* 菜单信息 |
|
|
|
|
|
|
|
* @return 菜单信息 |
|
|
|
* @return 菜单信息 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Map<String, SysMenuEntity> toMenuList(List<SysMenuEntity> menuEntities) { |
|
|
|
public Map<String, SysMenuEntity> toMenuList(List<SysMenuEntity> menuEntities) { |
|
|
|