|
@@ -29,8 +29,8 @@ public class HotIconServiceImpl extends ServiceImpl<IHotIconMapper, HotIcon> imp
|
|
public List<HotIcon> getListByUserName(String username) {
|
|
public List<HotIcon> getListByUserName(String username) {
|
|
LambdaQueryWrapper<HotIcon> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<HotIcon> wrapper = new LambdaQueryWrapper<>();
|
|
wrapper.eq(HotIcon::getUserName,username)
|
|
wrapper.eq(HotIcon::getUserName,username)
|
|
- .or().eq(HotIcon::getSystem,1);
|
|
|
|
- wrapper.orderByDesc(HotIcon::getSystem) // 官方默认
|
|
|
|
|
|
+ .or().eq(HotIcon::getIsSystem,1);
|
|
|
|
+ wrapper.orderByDesc(HotIcon::getIsSystem) // 官方默认
|
|
.orderByDesc(HotIcon::getIsNew) // 新增
|
|
.orderByDesc(HotIcon::getIsNew) // 新增
|
|
.orderByDesc(HotIcon::getLastUse) // 上次使用
|
|
.orderByDesc(HotIcon::getLastUse) // 上次使用
|
|
.orderByDesc(HotIcon::getUseNum) // 使用次数
|
|
.orderByDesc(HotIcon::getUseNum) // 使用次数
|
|
@@ -41,7 +41,7 @@ public class HotIconServiceImpl extends ServiceImpl<IHotIconMapper, HotIcon> imp
|
|
@Override
|
|
@Override
|
|
public HotIcon getDefaultIcon() {
|
|
public HotIcon getDefaultIcon() {
|
|
LambdaQueryWrapper<HotIcon> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<HotIcon> wrapper = new LambdaQueryWrapper<>();
|
|
- wrapper.eq(HotIcon::getSystem,1);
|
|
|
|
|
|
+ wrapper.eq(HotIcon::getIsSystem,1);
|
|
wrapper.orderByDesc(HotIcon::getCreateTime);
|
|
wrapper.orderByDesc(HotIcon::getCreateTime);
|
|
List<HotIcon> list = this.list(wrapper);
|
|
List<HotIcon> list = this.list(wrapper);
|
|
if(list!= null && list.size() >0){
|
|
if(list!= null && list.size() >0){
|