|
@@ -292,10 +292,10 @@ public class FlowEntryController {
|
|
|
@OperationLog(type = SysOperationLogType.UPDATE)
|
|
|
@PostMapping("/updateMainVersion")
|
|
|
public ResponseResult<Void> updateMainVersion(
|
|
|
- @MyRequestBody(required = true) Long entryId,
|
|
|
- @MyRequestBody(required = true) Long newEntryPublishId) {
|
|
|
+ @MyRequestBody(required = true) String entryId,
|
|
|
+ @MyRequestBody(required = true) String newEntryPublishId) {
|
|
|
String errorMessage;
|
|
|
- FlowEntryPublish flowEntryPublish = flowEntryService.getFlowEntryPublishFromCache(newEntryPublishId + "");
|
|
|
+ FlowEntryPublish flowEntryPublish = flowEntryService.getFlowEntryPublishFromCache(newEntryPublishId);
|
|
|
if (flowEntryPublish == null) {
|
|
|
errorMessage = "数据验证失败,当前流程发布版本并不存在,请刷新后重试!";
|
|
|
return ResponseResult.error(ErrorCodeEnum.DATA_NOT_EXIST, errorMessage);
|