diff --git a/backend/src/main/java/com/yfd/platform/qgc_data/service/impl/FishImportServiceImpl.java b/backend/src/main/java/com/yfd/platform/qgc_data/service/impl/FishImportServiceImpl.java index f9629141..23f1728b 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_data/service/impl/FishImportServiceImpl.java +++ b/backend/src/main/java/com/yfd/platform/qgc_data/service/impl/FishImportServiceImpl.java @@ -1103,17 +1103,17 @@ public class FishImportServiceImpl implements IFishImportService { return null; } SdFishDictoryB exactMatch = findFirst(fishDictoryBMapper.selectList(new LambdaQueryWrapper() - .select(SdFishDictoryB::getCode, SdFishDictoryB::getName) + .select(SdFishDictoryB::getId, SdFishDictoryB::getName) .eq(SdFishDictoryB::getName, normalizedName))); if (exactMatch != null) { - return exactMatch.getCode(); + return exactMatch.getId(); } SdFishDictoryB fuzzyMatch = findFirst(fishDictoryBMapper.selectList(new LambdaQueryWrapper() - .select(SdFishDictoryB::getCode, SdFishDictoryB::getName) + .select(SdFishDictoryB::getId, SdFishDictoryB::getName) .and(wrapper -> wrapper.like(SdFishDictoryB::getName, normalizedName) .or() .like(SdFishDictoryB::getAlias, normalizedName)))); - return fuzzyMatch == null ? null : fuzzyMatch.getCode(); + return fuzzyMatch == null ? null : fuzzyMatch.getId(); } @Override @@ -1125,11 +1125,11 @@ public class FishImportServiceImpl implements IFishImportService { } if (StringUtils.hasText(normalizedCode)) { SdFishDictoryB exact = findFirst(fishDictoryBMapper.selectList(new LambdaQueryWrapper() - .select(SdFishDictoryB::getCode, SdFishDictoryB::getName) - .eq(SdFishDictoryB::getCode, normalizedCode))); + .select(SdFishDictoryB::getId, SdFishDictoryB::getName) + .eq(SdFishDictoryB::getId, normalizedCode))); // .eq(SdFishDictoryB::getName, normalizedName))); if (exact != null) { - return exact.getCode(); + return exact.getId(); } } // if (StringUtils.hasText(normalizedCode)) {