|
@@ -143,9 +143,6 @@ public class LifeCouponServiceImpl extends ServiceImpl<LifeCouponMapper, LifeCou
|
|
|
"WHEN status IN (4, 6, 7) THEN 3 " + // 已售罄、已下架、已结束
|
|
"WHEN status IN (4, 6, 7) THEN 3 " + // 已售罄、已下架、已结束
|
|
|
"ELSE 4 END ASC, " +
|
|
"ELSE 4 END ASC, " +
|
|
|
"created_time DESC");
|
|
"created_time DESC");
|
|
|
-
|
|
|
|
|
-// wrapper.orderByDesc(LifeCoupon::getCreatedTime);
|
|
|
|
|
-// wrapper.last("ORDER BY CASE WHEN status = 5 THEN 0 ELSE 1 END ASC , created_time DESC");
|
|
|
|
|
IPage<LifeCoupon> lifeCouponIPage = new Page<>(page, size);
|
|
IPage<LifeCoupon> lifeCouponIPage = new Page<>(page, size);
|
|
|
return lifeCouponMapper.selectPage(lifeCouponIPage, wrapper);
|
|
return lifeCouponMapper.selectPage(lifeCouponIPage, wrapper);
|
|
|
}
|
|
}
|