店铺列表顺序修改
This commit is contained in:
@@ -16,7 +16,7 @@ public class ShopInfoAddDTO {
|
||||
private String chainName;
|
||||
@NotEmpty(message = "店铺logo不为空")
|
||||
private String logo;
|
||||
@NotEmpty(message = "门头照不为空")
|
||||
// @NotEmpty(message = "门头照不为空")
|
||||
private String frontImg;
|
||||
@NotEmpty(message = "试用/正式不为空")
|
||||
private String profiles;
|
||||
|
||||
@@ -82,6 +82,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
|
||||
if (status != null) {
|
||||
queryWrapper.eq(ShopInfo::getStatus, status);
|
||||
}
|
||||
queryWrapper.orderBy(ShopInfo::getCreateTime, false);
|
||||
return page(new Page<>(pageDTO.page(), pageDTO.size()), queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user