|
@@ -62,6 +62,7 @@ public class TreePosterContentServiceImpl extends ServiceImpl<ITreePosterContent
|
|
|
.eq(TreePosterContent::getPosterLibId, posterLib.getId())
|
|
|
.eq(TreePosterContent::getAppUserId, addDTO.getAppUserId())
|
|
|
.eq(TreePosterContent::getTreeId, addDTO.getTreeId())
|
|
|
+ .eq(TreePosterContent::getStatus, 1)
|
|
|
.one();
|
|
|
if (treePosterContent == null) {
|
|
|
// 2.获取悄悄话,取最新一条记录
|
|
@@ -99,6 +100,7 @@ public class TreePosterContentServiceImpl extends ServiceImpl<ITreePosterContent
|
|
|
IPage<TreePosterContent> pageInfo = this.lambdaQuery()
|
|
|
.eq(TreePosterContent::getAppUserId, queryDTO.getAppUserId())
|
|
|
.eq(TreePosterContent::getTreeId, queryDTO.getTreeId())
|
|
|
+ .eq(TreePosterContent::getStatus, 1)
|
|
|
.orderByDesc(TreePosterContent::getCreatedTime)
|
|
|
.page(page);
|
|
|
List<AppTreePosterContentRespDTO> list = new ArrayList<>();
|
|
@@ -132,6 +134,7 @@ public class TreePosterContentServiceImpl extends ServiceImpl<ITreePosterContent
|
|
|
|
|
|
List<TreePosterContent> treePosterContentList = this.lambdaQuery()
|
|
|
.eq(TreePosterContent::getTreeId, queryDTO.getTreeId())
|
|
|
+ .eq(TreePosterContent::getStatus, 1)
|
|
|
.between(TreePosterContent::getCreatedTime, min, max)
|
|
|
.orderByDesc(TreePosterContent::getCreatedTime)
|
|
|
.list();
|