yusm пре 3 месеци
родитељ
комит
44a49827c3

+ 19 - 0
fhKeeper/formulahousekeeper/management-crm/src/main/java/com/management/platform/service/impl/UserServiceImpl.java

@@ -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"));