优化通道数据显示

This commit is contained in:
648540858
2024-07-10 17:33:04 +08:00
parent 6ecf8af6ca
commit a084fac7cd
6 changed files with 199 additions and 144 deletions

View File

@@ -108,9 +108,10 @@ public class DeviceQuery {
@GetMapping("/devices")
@Options()
public PageInfo<Device> devices(int page, int count, String query, Boolean status){
// if (page == null) page = 0;
// if (count == null) count = 20;
return deviceService.getAll(page, count,query, status);
if (ObjectUtils.isEmpty(query)){
query = null;
}
return deviceService.getAll(page, count, query, status);
}
/**