动态列表和保存处理
This commit is contained in:
parent
0100fe75ff
commit
8668ecaede
@ -32,8 +32,8 @@ public class DynamicReportCmdExe {
|
|||||||
ResponseAssert.notNull(DynamicErrorCode.CONTENT_IS_NULL, content);
|
ResponseAssert.notNull(DynamicErrorCode.CONTENT_IS_NULL, content);
|
||||||
ResponseAssert.isFalse(DynamicErrorCode.CONTENT_DELETE, content.getDel());
|
ResponseAssert.isFalse(DynamicErrorCode.CONTENT_DELETE, content.getDel());
|
||||||
|
|
||||||
ResponseAssert.isFalse(DynamicErrorCode.REPEAT_COMPLAINT_ERROR,
|
// ResponseAssert.isFalse(DynamicErrorCode.REPEAT_COMPLAINT_ERROR,
|
||||||
dynamicReportService.exist(cmd.getDynamicContentId(), cmd.getReqUserId()));
|
// dynamicReportService.exist(cmd.getDynamicContentId(), cmd.getReqUserId()));
|
||||||
|
|
||||||
dynamicReportService.save(new DynamicReport()
|
dynamicReportService.save(new DynamicReport()
|
||||||
.setApprovalStatus(0)
|
.setApprovalStatus(0)
|
||||||
|
|||||||
@ -87,6 +87,7 @@ public class DynamicMyQryExe {
|
|||||||
result.setLikeStrQuantity(NumUtils.formatLong(likeQuantityMap.get(dynamic.getId())));
|
result.setLikeStrQuantity(NumUtils.formatLong(likeQuantityMap.get(dynamic.getId())));
|
||||||
result.setLike(Optional.ofNullable(likeMap.get(dynamic.getId())).orElse(Boolean.FALSE));
|
result.setLike(Optional.ofNullable(likeMap.get(dynamic.getId())).orElse(Boolean.FALSE));
|
||||||
result.setCommentStrQuantity(NumUtils.formatInt(commentQuantityMap.get(dynamic.getId())));
|
result.setCommentStrQuantity(NumUtils.formatInt(commentQuantityMap.get(dynamic.getId())));
|
||||||
|
result.setUserProfile(userProfileAppConvertor.convertToSimpleProfile(user));
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user