定时同步组织代码

This commit is contained in:
zhal 2022-07-05 14:43:47 +08:00
parent 2ba17f768b
commit 0ead494ffe
2 changed files with 14 additions and 7 deletions

View File

@ -2906,6 +2906,12 @@ public class CoEPALController {
return web.saveCreatePalProcessLevelRepositoryDesigner(wsId, teamId, category, method, parentId, container,securityLevel,name); return web.saveCreatePalProcessLevelRepositoryDesigner(wsId, teamId, category, method, parentId, container,securityLevel,name);
} }
@Mapping("com.actionsoft.apps.coe.getArchitecturePath")
public String getArchitecturePath(UserContext me, String parentId) {
CoeProcessLevelWeb web = new CoeProcessLevelWeb(me);
return web.getArchitecturePath(parentId);
}
/** /**
* 校验重名功能 * 校验重名功能
* @param me * @param me

View File

@ -8006,8 +8006,6 @@ public class CoeProcessLevelWeb extends ActionWeb {
} }
return ro.toString(); return ro.toString();
} }
@ -8117,26 +8115,29 @@ public class CoeProcessLevelWeb extends ActionWeb {
CoEOpLogAPI.auditOkOp(_uc, CoEOpLogConst.MODULE_CATEGORY_REPOSITORY, CoEOpLogConst.OP_CREATE, CoEOpLogConst.INFO_REPOSITORY_CREATE); CoEOpLogAPI.auditOkOp(_uc, CoEOpLogConst.MODULE_CATEGORY_REPOSITORY, CoEOpLogConst.OP_CREATE, CoEOpLogConst.INFO_REPOSITORY_CREATE);
} }
return ro.toString();
}
/***************************************************获取当前文件位置 byzhaolei**********************************************/
public String getArchitecturePath(String parentId){
ResponseObject ro = ResponseObject.newOkResponse();
JSONArray repositoryPathData = CoeProcessLevelUtil.getRepositoryPath(parentId);
// 获取当前文件路径 // 获取当前文件路径
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
if(repositoryPathData.size()>0){ if(repositoryPathData.size()>0){
for(int i=0;i<repositoryPathData.size();i++){ for(int i=0;i<repositoryPathData.size();i++){
String name2=((JSONObject) repositoryPathData.get(i)).getString("name"); String name=((JSONObject) repositoryPathData.get(i)).getString("name");
sb.append(name2).append("\\"); sb.append(name).append("\\");
} }
} }
String keywordStr = sb.deleteCharAt(sb.length() - 1).toString();//去掉最后一个逗号 String keywordStr = sb.deleteCharAt(sb.length() - 1).toString();//去掉最后一个逗号
ro.put("repositoryPathData",keywordStr); ro.put("repositoryPathData",keywordStr);
return ro.toString(); return ro.toString();
} }
/** /**
*校验是否存在重复标题 *校验是否存在重复标题
* @param title * @param title