修复切换模型版本,版本数据没有同步更新问题
This commit is contained in:
parent
1cbf88415a
commit
ab68485de9
Binary file not shown.
@ -4580,6 +4580,7 @@ public class CoeDesignerWeb extends ActionWeb {
|
||||
lastplModel.setPublish(false);
|
||||
lastplModel.setStop(false);
|
||||
lastplModel.setApproval(false);
|
||||
|
||||
Timestamp nowTime = new Timestamp(System.currentTimeMillis());
|
||||
String uid = super.getContext().getUID();
|
||||
lastplModel.setCreateUser(uid);
|
||||
@ -4587,6 +4588,9 @@ public class CoeDesignerWeb extends ActionWeb {
|
||||
lastplModel.setModifyUser(uid);
|
||||
lastplModel.setModifyDate(nowTime);
|
||||
|
||||
|
||||
|
||||
|
||||
//密级
|
||||
lastplModel.setSecurityLevel(-1);
|
||||
int store = 0;
|
||||
@ -4638,6 +4642,19 @@ public class CoeDesignerWeb extends ActionWeb {
|
||||
CoEOpLogAPI.auditOkOp(_uc, CoEOpLogConst.MODULE_CATEGORY_REPOSITORY, CoEOpLogConst.OP_CREATE, CoEOpLogConst.INFO_REPOSITORY_NEW_VERSION_CREATE);
|
||||
}
|
||||
|
||||
|
||||
//更新版本信息
|
||||
PALRepositoryPropertyDao propertyDao = new PALRepositoryPropertyDao();
|
||||
|
||||
if(lastplModel.getMethodId().equals("process.epc") || lastplModel.getMethodId().equals("process.flowchart")|| lastplModel.getMethodId().equals("data.form")){
|
||||
propertyDao.updatePropertyByPropertyId(newUUID, "P_versions", String.valueOf(VersionUtil.increaseVersionNo(tempVer, isLargeIteration)));
|
||||
}
|
||||
if(lastplModel.getMethodId().equals("process.scheme") || lastplModel.getMethodId().equals("control.policy") || lastplModel.getMethodId().equals("engineering.standard")){
|
||||
propertyDao.updatePropertyByPropertyId(newUUID, "versions", String.valueOf(VersionUtil.increaseVersionNo(tempVer, isLargeIteration)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
ro = ResponseObject.newOkResponse("创建成功");
|
||||
ro.put("uuid", lastplModel.getId());
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user