|
|
|
@ -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());
|
|
|
|
|