修改分页查询

This commit is contained in:
chenzhihang 2024-09-19 17:07:09 +08:00
parent c62d20f63d
commit f9cf9ad312
2 changed files with 6 additions and 6 deletions

View File

@ -995,9 +995,9 @@ public class ModelsServiceImpl implements ModelsService {
if (map != null) {
List<Map<String, Object>> topics = (List<Map<String, Object>>) map.get("topics");
if (topics != null && topics.size() > 0 && modelTopic.equals(topics.get(0).get("name"))) {
String modeltag = (String) topics.get(1).get("name");
String modeltype = (String) topics.get(2).get("name");
if (topics != null && topics.size() > 0 && modelTopic.equals(topics.get(1).get("name"))) {
String modeltag = (String) topics.get(2).get("name");
String modeltype = (String) topics.get(3).get("name");
modeltag = modeltag.substring("modeltag-".length());
modeltype = modeltype.substring("modeltype-".length());
if (StringUtils.isNotEmpty(modelTagName) && !modelTagName.toLowerCase().equals(modeltag)) {

View File

@ -448,9 +448,9 @@ public class NewDatasetServiceImpl implements NewDatasetService {
if (map != null) {
List<Map<String, Object>> topics = (List<Map<String, Object>>) map.get("topics");
if (topics != null && topics.size() > 0 && datasetTopic.equals(topics.get(0).get("name"))) {
String datasettag = (String) topics.get(1).get("name");
String datasetype = (String) topics.get(2).get("name");
if (topics != null && topics.size() > 0 && datasetTopic.equals(topics.get(1).get("name"))) {
String datasettag = (String) topics.get(2).get("name");
String datasetype = (String) topics.get(3).get("name");
datasettag = datasettag.substring("datatag-".length());
datasetype = datasetype.substring("datatype-".length());
if (StringUtils.isNotEmpty(datasetTagName) && !datasetTagName.toLowerCase().equals(datasettag)) {