回收站恢复模型文件重新发布知识

This commit is contained in:
Mr-wang 2023-08-17 15:47:01 +08:00
parent a75e92ea73
commit fdf1f7376b

View File

@ -560,9 +560,7 @@ public class CoeProcessRecycleWeb extends ActionWeb {
PALRepositoryRemoveCache.getCache().put(model.getId(), model);
}
}
if (model.isPublish()){
PublishKnow("com.actionsoft.apps.coe.pal",_uc,model.getExt4());
}
}
//如果流程库中已经存在该模型说明其子文件还原时创建过模型需要替换流程库中的模型
@ -603,6 +601,10 @@ public class CoeProcessRecycleWeb extends ActionWeb {
}*/
dao.restoreRecycleModel(removeId);
PALRepositoryModel palModel = PALRepositoryCache.getCache().get(removeId);
if (palModel.isPublish()){
PublishKnow("com.actionsoft.apps.coe.pal",_uc,palModel.getExt4());
}
// 操作行为日志记录
if (SDK.getAppAPI().getPropertyBooleanValue(CoEConstant.APP_ID, "IS_RECORD_OP_LOG", false)) {
CoEOpLogAPI.auditOkOp(_uc, CoEOpLogConst.MODULE_CATEGORY_RECYCLE, CoEOpLogConst.OP_RESTORE, CoEOpLogConst.INFO_RECYCLE_RESTORE);