动态列表和保存处理

This commit is contained in:
tianfeng 2026-02-02 15:58:27 +08:00
parent 0100fe75ff
commit 8668ecaede
2 changed files with 3 additions and 2 deletions

View File

@ -32,8 +32,8 @@ public class DynamicReportCmdExe {
ResponseAssert.notNull(DynamicErrorCode.CONTENT_IS_NULL, content);
ResponseAssert.isFalse(DynamicErrorCode.CONTENT_DELETE, content.getDel());
ResponseAssert.isFalse(DynamicErrorCode.REPEAT_COMPLAINT_ERROR,
dynamicReportService.exist(cmd.getDynamicContentId(), cmd.getReqUserId()));
// ResponseAssert.isFalse(DynamicErrorCode.REPEAT_COMPLAINT_ERROR,
// dynamicReportService.exist(cmd.getDynamicContentId(), cmd.getReqUserId()));
dynamicReportService.save(new DynamicReport()
.setApprovalStatus(0)

View File

@ -87,6 +87,7 @@ public class DynamicMyQryExe {
result.setLikeStrQuantity(NumUtils.formatLong(likeQuantityMap.get(dynamic.getId())));
result.setLike(Optional.ofNullable(likeMap.get(dynamic.getId())).orElse(Boolean.FALSE));
result.setCommentStrQuantity(NumUtils.formatInt(commentQuantityMap.get(dynamic.getId())));
result.setUserProfile(userProfileAppConvertor.convertToSimpleProfile(user));
return result;
});