修复相册管理无法查询全部问题

This commit is contained in:
TinyAnts 2022-08-11 14:40:48 +08:00
parent 1d5153dae6
commit 51c39e7a4f
1 changed files with 3 additions and 6 deletions

View File

@ -15,10 +15,7 @@ import com.hxkj.common.entity.album.Album;
import com.hxkj.common.entity.album.AlbumCate; import com.hxkj.common.entity.album.AlbumCate;
import com.hxkj.common.mapper.album.AlbumCateMapper; import com.hxkj.common.mapper.album.AlbumCateMapper;
import com.hxkj.common.mapper.album.AlbumMapper; import com.hxkj.common.mapper.album.AlbumMapper;
import com.hxkj.common.utils.ArrayUtil; import com.hxkj.common.utils.*;
import com.hxkj.common.utils.TimeUtil;
import com.hxkj.common.utils.ToolsUtil;
import com.hxkj.common.utils.UrlUtil;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -62,7 +59,7 @@ public class AlbumServiceImpl implements IAlbumService {
.eq("is_delete", 0) .eq("is_delete", 0)
.orderByDesc("id"); .orderByDesc("id");
if (params.get("cid") != null && Integer.parseInt(params.get("cid")) >= 0) { if (StringUtil.isNotEmpty(params.get("cid"))) {
queryWrapper.eq("cid", Integer.parseInt(params.get("cid"))); queryWrapper.eq("cid", Integer.parseInt(params.get("cid")));
} }