♻️ Refactoring code. 部署失败,错误抛出

This commit is contained in:
冷冷 committed 2020-02-21 16:55:25 +08:00
1 parent 1ad9097831
commit cbc584cfb2
2 files changed
+2 -1

No files matched your search

@@ -61,6 +61,6 @@ public class ModelController {
@PostMapping("/deploy/{id}")
public R deploy(@PathVariable("id") String id) {
return R.ok(modelService.deploy(id));
return modelService.deploy(id) ? R.ok() : R.failed();
}
}
@@ -174,6 +174,7 @@ public class ModelServiceImpl implements ModelService {
repositoryService.setProcessDefinitionCategory(processDefinition.getId(), model.getCategory()));
} catch (Exception e) {
log.error("部署失败,异常", e);
return Boolean.FALSE;
}
return Boolean.TRUE;
}