|
|
|
@ -1153,7 +1153,7 @@ public class ChangeManagementServiceImpl extends ServiceImpl<ChangeManagementMap |
|
|
|
String requestName = changeManagementMapper.getRequestNameByFunction(site, requestHeader.get(0).getClassificationNo(), workflowId, workflowname, "", "", docNo, "", userName, DateUtils.getStringNow(), "", menuId, "下达"); |
|
|
|
|
|
|
|
String reqUrl = requestHeader.get(0).getUrl(); |
|
|
|
String path = "/".equals(String.valueOf(reqUrl.charAt(0))) ? reqUrl.substring(1).replaceAll("/", "-") : reqUrl.replaceAll("/", "-"); |
|
|
|
String path = buildOaJumpPath(reqUrl); |
|
|
|
|
|
|
|
// 返回值 |
|
|
|
HashMap<String, String> hashMap = new HashMap<>(); |
|
|
|
@ -1169,6 +1169,18 @@ public class ChangeManagementServiceImpl extends ServiceImpl<ChangeManagementMap |
|
|
|
return hashMap; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 菜单URL转成前端动态路由 name(全部 '/' 替换为 '-') |
|
|
|
* 项目信息:project/projectInfo/projectInfo → project-projectInfo-projectInfo |
|
|
|
*/ |
|
|
|
private String buildOaJumpPath(String reqUrl) { |
|
|
|
if (reqUrl == null || reqUrl.isEmpty()) { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
String path = "/".equals(String.valueOf(reqUrl.charAt(0))) ? reqUrl.substring(1) : reqUrl; |
|
|
|
return path.replaceAll("/", "-"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 封装的下达方法 |
|
|
|
* @return |
|
|
|
@ -1520,7 +1532,7 @@ public class ChangeManagementServiceImpl extends ServiceImpl<ChangeManagementMap |
|
|
|
String requestId = processFormList.get(0).getRequestId(); |
|
|
|
String requestName = processFormList.get(0).getWorkflowname() + "-" + userName + "-" + DateUtils.getStringNow(); |
|
|
|
String reqUrl = processFormList.get(0).getUrl(); |
|
|
|
String path = "/".equals(String.valueOf(reqUrl.charAt(0))) ? reqUrl.substring(1).replaceAll("/", "-") : reqUrl.replaceAll("/", "-"); |
|
|
|
String path = buildOaJumpPath(reqUrl); |
|
|
|
|
|
|
|
// 返回值 |
|
|
|
HashMap<String, String> hashMap = new HashMap<>(); |
|
|
|
|