From f907785f4a68828fa954e15b3edbb9f4e092b462 Mon Sep 17 00:00:00 2001 From: tangwei Date: Wed, 1 Jul 2026 18:49:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/FishImportServiceImpl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)) {