Merge branch 'master' of https://e.coding.net/yilidev/yilipalkaifa/apps
This commit is contained in:
commit
0693b72ca6
@ -2906,6 +2906,12 @@ public class CoEPALController {
|
||||
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
|
||||
|
||||
@ -8006,13 +8006,22 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return ro.toString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 保存空白模板
|
||||
* @param wsId
|
||||
* @param teamId
|
||||
* @param category
|
||||
* @param method
|
||||
* @param parentId
|
||||
* @param container
|
||||
* @param securityLevel
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
public String saveCreatePalProcessLevelRepositoryDesigner(String wsId, String teamId, String category, String method, String parentId, String container,Integer securityLevel,String name){
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
PALRepository coeProcessLevel = CoeProcessLevelDaoFacotory.createCoeProcessLevel();
|
||||
@ -8117,26 +8126,33 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
CoEOpLogAPI.auditOkOp(_uc, CoEOpLogConst.MODULE_CATEGORY_REPOSITORY, CoEOpLogConst.OP_CREATE, CoEOpLogConst.INFO_REPOSITORY_CREATE);
|
||||
}
|
||||
|
||||
return ro.toString();
|
||||
}
|
||||
|
||||
/***************************************************获取当前文件位置 byzhaolei**********************************************/
|
||||
|
||||
/**
|
||||
* 获取路径
|
||||
* @param parentId
|
||||
* @return
|
||||
*/
|
||||
public String getArchitecturePath(String parentId){
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
JSONArray repositoryPathData = CoeProcessLevelUtil.getRepositoryPath(parentId);
|
||||
// 获取当前文件路径
|
||||
StringBuffer sb = new StringBuffer();
|
||||
if(repositoryPathData.size()>0){
|
||||
for(int i=0;i<repositoryPathData.size();i++){
|
||||
String name2=((JSONObject) repositoryPathData.get(i)).getString("name");
|
||||
sb.append(name2).append("\\");
|
||||
String name=((JSONObject) repositoryPathData.get(i)).getString("name");
|
||||
sb.append(name).append("\\");
|
||||
}
|
||||
}
|
||||
|
||||
String keywordStr = sb.deleteCharAt(sb.length() - 1).toString();//去掉最后一个逗号
|
||||
ro.put("repositoryPathData",keywordStr);
|
||||
|
||||
return ro.toString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*校验是否存在重复标题
|
||||
* @param title
|
||||
|
||||
Loading…
Reference in New Issue
Block a user