|
@@ -332,6 +332,25 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
|
|
List<SysModule> collect = userVO.getModuleList().stream().filter(m -> !"联系人".equals(m.getName()) && !"销售订单".equals(m.getName())).collect(Collectors.toList());
|
|
|
userVO.setModuleList(collect);
|
|
|
}
|
|
|
+ if (company.getIsExistBusiness()==0) {
|
|
|
+ List<SysModule> moduleList = userVO.getModuleList();
|
|
|
+ for (SysModule sysModule : moduleList) {
|
|
|
+ sysModule.setName(sysModule.getName().replaceAll("商机","项目"));
|
|
|
+
|
|
|
+ List<SysFunction> sysFunctionList = sysModule.getFunctionList();
|
|
|
+ for (SysFunction function : sysFunctionList) {
|
|
|
+ function.setName(function.getName().replaceAll("商机","项目"));
|
|
|
+ }
|
|
|
+ sysModule.setFunctionList(sysFunctionList);
|
|
|
+ }
|
|
|
+ userVO.setModuleList(moduleList);
|
|
|
+
|
|
|
+ List<SysFunction> list = userVO.getFunctionList();
|
|
|
+ for (SysFunction function : list) {
|
|
|
+ function.setName(function.getName().replaceAll("商机","项目"));
|
|
|
+ }
|
|
|
+ userVO.setFunctionList(list);
|
|
|
+ }
|
|
|
httpRespMsg.data = userVO;
|
|
|
}else {
|
|
|
httpRespMsg.setError(MessageUtils.message("user.pwdError"));
|