Commit c71c83bf5dfec4dbeebd235ae124c17b6b1e3e80
Merge branch 'master-jdk17' of https://github.com/YunaiV/ruoyi-vue-pro into master-jdk17
Showing
1 changed file
with
4 additions
and
1 deletions
yudao-module-mall/yudao-module-promotion/src/main/java/cn/iocoder/yudao/module/promotion/dal/mysql/combination/CombinationActivityMapper.java
| ... | ... | @@ -31,8 +31,11 @@ public interface CombinationActivityMapper extends BaseMapperX<CombinationActivi |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | default PageResult<CombinationActivityDO> selectPage(PageParam pageParam, Integer status) { |
| 34 | + // C 端列表与 admin 面 selectPage 对齐按 id 倒序(最新在前): | |
| 35 | + // 原缺 orderBy 时 MyBatis-Plus 按主键升序=最旧在前,新上架活动被挤后页,C 端首页不可见(A56) | |
| 34 | 36 | return selectPage(pageParam, new LambdaQueryWrapperX<CombinationActivityDO>() |
| 35 | - .eq(CombinationActivityDO::getStatus, status)); | |
| 37 | + .eq(CombinationActivityDO::getStatus, status) | |
| 38 | + .orderByDesc(CombinationActivityDO::getId)); | |
| 36 | 39 | } |
| 37 | 40 | |
| 38 | 41 | default CombinationActivityDO selectBySpuIdAndStatusAndNow(Long spuId, Integer status) { | ... | ... |