Compare commits

..

No commits in common. "41653e9bc4a66803b95d0f13542050e0904ba187" and "d882cc1997eedf93b3b218b59641435e23828d2e" have entirely different histories.

2 changed files with 5 additions and 2 deletions

View File

@ -680,7 +680,6 @@ public class ChartController {
chart.setChartType(chartType);
chart.setGenChart(genChart);
chart.setGenResult(genResult);
chart.setStatus("succeed");
chart.setUserId(loginUser.getId());
boolean saveResult = chartService.save(chart);
ThrowUtils.throwIf(!saveResult, ErrorCode.SYSTEM_ERROR, "图表保存失败");

View File

@ -165,10 +165,11 @@ public class commentController {
comment.setContent(content);
comment.setUserId(loginUser.getId());
comment.setIsDelete(0);
// 6. 保存评论
boolean result = commentService.save(comment);
if (!result) {
throw new BusinessException(ErrorCode.SYSTEM_ERROR, "评论发布失败");
throw new BusinessException(Erro rCode.SYSTEM_ERROR, "评论发布失败");
}
@ -176,4 +177,7 @@ public class commentController {
return ResultUtils.success(comment.getId());
}
}