【代码评审】IM:review IM 前缀的命名
This commit is contained in:
parent
bada82f8cc
commit
dc28c7e8a2
|
@ -18,6 +18,7 @@ public interface ImInboxMapper extends BaseMapperX<ImInboxDO> {
|
||||||
default List<ImInboxDO> selectListByUserIdAndSequence(Long userId, Long sequence, Integer size) {
|
default List<ImInboxDO> selectListByUserIdAndSequence(Long userId, Long sequence, Integer size) {
|
||||||
return selectList(new LambdaQueryWrapperX<ImInboxDO>()
|
return selectList(new LambdaQueryWrapperX<ImInboxDO>()
|
||||||
.eq(ImInboxDO::getUserId, userId)
|
.eq(ImInboxDO::getUserId, userId)
|
||||||
|
// .gtIfPresent() // TODO @hao:可以用这个,简化下面的 .gt(sequence != null, ImInboxDO::getSequence, sequence)
|
||||||
.gt(sequence != null, ImInboxDO::getSequence, sequence)
|
.gt(sequence != null, ImInboxDO::getSequence, sequence)
|
||||||
.orderByDesc(ImInboxDO::getSequence)
|
.orderByDesc(ImInboxDO::getSequence)
|
||||||
.last("LIMIT " + size));
|
.last("LIMIT " + size));
|
||||||
|
|
Loading…
Reference in New Issue