Commit f9eea4a4 by 林永健

实例已启动无法修改阶段条件

1 parent 0175c46e
......@@ -260,6 +260,11 @@ public class SopInstService {
result.setMessage("模板实例不存在或已关闭");
return result;
}
if (sopInst.getInstStatus().equals(SopInstStatusEnum.NORMAL.getValue())) {
result = Result.failure();
result.setMessage("模板实例已开启,此参数不允许再变更");
return result;
}
String stagesStr = JacksonUtil.writeValueAsString(stageData);
// 合并stages数据
String oldStagesStr = JacksonUtil.getStrValueInJsonStrByPath(sopInst.getInstParam(), "stages");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!