优化升版功能

This commit is contained in:
zhal 2022-08-17 21:24:01 +08:00
parent 247eb159a9
commit 3d897c3702
2 changed files with 4 additions and 4 deletions

View File

@ -3784,7 +3784,7 @@ public class CoeDesignerWeb extends ActionWeb {
lastplModel.setUse(false);
srcPath = lastplModel.getFilePath();
if (!"".equals(srcPath) && srcPath != null) {
targetPath = srcPath.replace(oldModel.getId(), lastplModel.getId());
targetPath = srcPath.replace(oldModel.getRelationFileId(), lastplModel.getId());
}
lastplModel.setFilePath(targetPath);
lastplModel.setPublish(false);
@ -3808,7 +3808,7 @@ public class CoeDesignerWeb extends ActionWeb {
if (store == 1) {
// 修改设计器文件
CoeFile fileUtil = new CoeFile();
fileUtil.copyDefaultVersion(srcPath, oldUUID, targetPath, lastplModel.getId());
fileUtil.copyDefaultVersion(srcPath, oldModel.getRelationFileId(), targetPath, lastplModel.getId());
// 获取新旧节点关联关系
final Map<String, String> mapNewUUID1 = createShapeIdRelation(PALRepositoryCache.getCache().get(oldModel.getRelationFileId()), true);
@ -3884,7 +3884,7 @@ public class CoeDesignerWeb extends ActionWeb {
if (SDK.getAppAPI().getPropertyBooleanValue(CoEConstant.APP_ID, "IS_RECORD_OP_LOG", false)) {
CoEOpLogAPI.auditOkOp(_uc, CoEOpLogConst.MODULE_CATEGORY_REPOSITORY, CoEOpLogConst.OP_DELETE, CoEOpLogConst.INFO_REPOSITORY_VERSION_DELETE);
}
//deletePalCorrelationModel(wsId,teamId,id);
deletePalCorrelationModel(wsId,teamId,id);
} else {
ro = ResponseObject.newErrResponse();
ro.msg("删除失败");
@ -3951,7 +3951,7 @@ public class CoeDesignerWeb extends ActionWeb {
ro.put("id", id);
//将关联模型(角色绩效)同步更改使用中状态
//changePalDesignerVersionUseBycorrelationModel(wsId,teamId,id);
changePalDesignerVersionUseBycorrelationModel(wsId,teamId,id);
return ro.toString();
} else {