店铺列表顺序修改

This commit is contained in:
张松 2025-03-03 11:04:06 +08:00
parent 4040919e9d
commit 0409cda25a
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ public class ShopInfoAddDTO {
private String chainName; private String chainName;
@NotEmpty(message = "店铺logo不为空") @NotEmpty(message = "店铺logo不为空")
private String logo; private String logo;
@NotEmpty(message = "门头照不为空") // @NotEmpty(message = "门头照不为空")
private String frontImg; private String frontImg;
@NotEmpty(message = "试用/正式不为空") @NotEmpty(message = "试用/正式不为空")
private String profiles; private String profiles;

View File

@ -82,6 +82,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
if (status != null) { if (status != null) {
queryWrapper.eq(ShopInfo::getStatus, status); queryWrapper.eq(ShopInfo::getStatus, status);
} }
queryWrapper.orderBy(ShopInfo::getCreateTime, false);
return page(new Page<>(pageDTO.page(), pageDTO.size()), queryWrapper); return page(new Page<>(pageDTO.page(), pageDTO.size()), queryWrapper);
} }