优化升版版本号同步
This commit is contained in:
parent
8a8c4a1953
commit
4b8f7c67ca
@ -8655,10 +8655,11 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
try {
|
||||
|
||||
RowMap rowMap = DBSql.getMap("SELECT PLNAME,PLPARENTID FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID=?", uuid);
|
||||
RowMap rowMap = DBSql.getMap("SELECT PLNAME,PLPARENTID,PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID=?", uuid);
|
||||
if (rowMap != null) {
|
||||
String plname = rowMap.getString("PLNAME");
|
||||
String plparentid=rowMap.getString("PLPARENTID");
|
||||
double plver=rowMap.getDouble("PLVER");
|
||||
String titleName=null;
|
||||
String shapName=null;
|
||||
String parentId=null;
|
||||
@ -8702,27 +8703,27 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
|
||||
//判断如果methodID为角色图,则创建到对应角色模型文件夹中
|
||||
if(methodId.equals("org.role")){
|
||||
model = CoeProcessLevelUtil.createPALRepositoryModel(id, plRid, wsId, plname + titleName,
|
||||
"", 1, checkAndCreatePalRoleFolderModel(coeProcessLevel,wsId), category, true, 1,
|
||||
model = createPALRepositoryModelByVersion(id, plRid, wsId, plname + titleName,
|
||||
"", 1, checkAndCreatePalRoleFolderModel(coeProcessLevel,wsId), category, true,plver,
|
||||
id, false, methodId, "0", 1, null,
|
||||
null, "admin", "admin", nowTime, null, data.toString(),
|
||||
null, null, null, null, null, null, null, 1);
|
||||
//如果control.kpi,创建末级流程绩效指标文件夹内
|
||||
}else if(methodId.equals("control.kpi")){
|
||||
model = CoeProcessLevelUtil.createPALRepositoryModel(id, plRid, wsId, plname + titleName,
|
||||
"", 1, checkAndCreatePalPerformanceFolderModel(coeProcessLevel,wsId), category, true, 1,
|
||||
model = createPALRepositoryModelByVersion(id, plRid, wsId, plname + titleName,
|
||||
"", 1, checkAndCreatePalPerformanceFolderModel(coeProcessLevel,wsId), category, true, plver,
|
||||
id, false, methodId, "0", 1, null,
|
||||
null, "admin", "admin", nowTime, null, data.toString(),
|
||||
null, null, null, null, null, null, null, 1);
|
||||
//如果是control.ma,创建L1-L3流程绩效文件夹内
|
||||
}else if(methodId.equals("control.ma")){
|
||||
model = CoeProcessLevelUtil.createPALRepositoryModel(id, plRid, wsId, plname + titleName,
|
||||
"", 1, checkAndCreatePalL1L3PerformanceFolderModel(coeProcessLevel,wsId), category, true, 1,
|
||||
model = createPALRepositoryModelByVersion(id, plRid, wsId, plname + titleName,
|
||||
"", 1, checkAndCreatePalL1L3PerformanceFolderModel(coeProcessLevel,wsId), category, true, plver,
|
||||
id, false, methodId, "0", 1, null,
|
||||
null, "admin", "admin", nowTime, null, data.toString(),
|
||||
null, null, null, null, null, null, null, 1);
|
||||
}else{
|
||||
model = CoeProcessLevelUtil.createPALRepositoryModel(id, plRid, wsId, plname + titleName,
|
||||
model = createPALRepositoryModelByVersion(id, plRid, wsId, plname + titleName,
|
||||
"", 1, parentId, category, true, 1,
|
||||
id, false, methodId, "0", 1, null,
|
||||
null, "admin", "admin", nowTime, null, data.toString(),
|
||||
@ -8894,6 +8895,64 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
return ro.toString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 创建RepositoryModel对象
|
||||
* @param no 编号
|
||||
* @param wsId 资产库id
|
||||
* @param name 名称
|
||||
* @param orderIndex 顺序
|
||||
* @param parentId 父id
|
||||
* @param category 分类
|
||||
* @param isUse 是否当前使用
|
||||
* @param version 版本号
|
||||
* @param isSystemFile 是否系统文件
|
||||
* @param methodId 小类
|
||||
* @param maxVersion
|
||||
* @param level 层级
|
||||
* @param createUser 创建用户id
|
||||
* @param modifyUser 修改用户id
|
||||
* @return
|
||||
*/
|
||||
public static PALRepositoryModelImpl createPALRepositoryModelByVersion(String id, String plRid, String wsId, String name, String no, int orderIndex, String parentId, String category, boolean isUse, double version, String versionId, boolean isSystemFile, String methodId, String maxVersion, int level, String dutyDept, String dutyUser, String createUser, String modifyUser, Timestamp timestamp, String ext1, String ext2, String ext3, String ext4, String input, String output, String desc, String plRd, String plRp,Integer securityLevel) {
|
||||
PALRepositoryModelImpl model = new PALRepositoryModelImpl();
|
||||
model.setId(id);
|
||||
model.setPlRid(plRid);
|
||||
model.setVersionId(versionId);
|
||||
model.setWsId(wsId);
|
||||
model.setName(name);
|
||||
model.setNo(no);
|
||||
model.setOrderIndex(orderIndex);
|
||||
model.setParentId(parentId);
|
||||
model.setNewParentId(parentId);
|
||||
model.setMethodCategory(category);
|
||||
model.setUse(isUse);
|
||||
model.setVersion(version);
|
||||
model.setSystemFile(isSystemFile);
|
||||
model.setMethodId(methodId);
|
||||
model.setHistoryMaxVersion(maxVersion);
|
||||
model.setLevel(level);
|
||||
model.setDutyDept(dutyDept);
|
||||
model.setDutyUser(dutyUser);
|
||||
model.setCreateDate(timestamp);
|
||||
model.setModifyDate(timestamp);
|
||||
model.setCreateUser(createUser);
|
||||
model.setModifyUser(modifyUser);
|
||||
model.setExt1(ext1);
|
||||
model.setExt2(ext2);
|
||||
model.setExt3(ext3);
|
||||
model.setExt4(ext4);
|
||||
model.setInput(input);
|
||||
model.setOutput(output);
|
||||
model.setDesc(desc);
|
||||
model.setOwnerDept(plRd);
|
||||
model.setOwnerUser(plRp);
|
||||
model.setSecurityLevel(securityLevel);
|
||||
return model;
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义属性
|
||||
* @param wsId
|
||||
|
||||
Loading…
Reference in New Issue
Block a user