Compare commits
2 Commits
d882cc1997
...
41653e9bc4
Author | SHA1 | Date | |
---|---|---|---|
|
41653e9bc4 | ||
|
919766f652 |
@ -680,6 +680,7 @@ public class ChartController {
|
|||||||
chart.setChartType(chartType);
|
chart.setChartType(chartType);
|
||||||
chart.setGenChart(genChart);
|
chart.setGenChart(genChart);
|
||||||
chart.setGenResult(genResult);
|
chart.setGenResult(genResult);
|
||||||
|
chart.setStatus("succeed");
|
||||||
chart.setUserId(loginUser.getId());
|
chart.setUserId(loginUser.getId());
|
||||||
boolean saveResult = chartService.save(chart);
|
boolean saveResult = chartService.save(chart);
|
||||||
ThrowUtils.throwIf(!saveResult, ErrorCode.SYSTEM_ERROR, "图表保存失败");
|
ThrowUtils.throwIf(!saveResult, ErrorCode.SYSTEM_ERROR, "图表保存失败");
|
||||||
|
@ -165,11 +165,10 @@ public class commentController {
|
|||||||
comment.setContent(content);
|
comment.setContent(content);
|
||||||
comment.setUserId(loginUser.getId());
|
comment.setUserId(loginUser.getId());
|
||||||
comment.setIsDelete(0);
|
comment.setIsDelete(0);
|
||||||
|
|
||||||
// 6. 保存评论
|
// 6. 保存评论
|
||||||
boolean result = commentService.save(comment);
|
boolean result = commentService.save(comment);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
throw new BusinessException(Erro rCode.SYSTEM_ERROR, "评论发布失败");
|
throw new BusinessException(ErrorCode.SYSTEM_ERROR, "评论发布失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -177,7 +176,4 @@ public class commentController {
|
|||||||
return ResultUtils.success(comment.getId());
|
return ResultUtils.success(comment.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user