1.修复查询平台信息错误问题

master
x_z 3 years ago
parent f0204969e4
commit 5964d09a69

@ -71,9 +71,9 @@ public class PlatformService {
public IPage<PlatformEntity> list(Map<String, Object> map) {
QueryWrapper<PlatformEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StrUtil.isNotBlank(String.valueOf(map.get("id"))), "id", map.get("id"))
.like(StrUtil.isNotBlank(String.valueOf(map.get("name"))), "name", map.get("name"))
.like(StrUtil.isNotBlank(String.valueOf(map.get("host"))), "host", map.get("host"));
wrapper.eq(StrUtil.isNotBlank(String.valueOf(map.get("id"))) && !"null".equals(String.valueOf(map.get("id"))), "id", map.get("id"))
.like(StrUtil.isNotBlank(String.valueOf(map.get("name"))) && !"null".equals(String.valueOf(map.get("name"))), "name", map.get("name"))
.like(StrUtil.isNotBlank(String.valueOf(map.get("host"))) && !"null".equals(String.valueOf(map.get("host"))), "host", map.get("host"));
if (map.get("page") != null && map.get("limit") != null) {
Integer page = Integer.valueOf(map.get("page").toString());

Loading…
Cancel
Save