From 58a1deb2a5dc2670575990e6d625c6329c9ecbcb Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 06 三月 2026 15:27:54 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpWhitelistServiceImpl.java | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpWhitelistServiceImpl.java b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpWhitelistServiceImpl.java
index 869c866..fe392ae 100644
--- a/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpWhitelistServiceImpl.java
+++ b/xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpWhitelistServiceImpl.java
@@ -98,6 +98,13 @@
if (!PhoneUtil.isPhone(dto.getAccount())) {
throw new ServiceException("以下帐号格式不正确:", I18nKeyConstant.ACCOUNT_FORMAT_ERROR, new Object[]{dto.getAccount()});
}
+ XpWhitelist old = this.lambdaQuery()
+ .eq(XpWhitelist::getAccount, dto.getAccount())
+ .ne(XpWhitelist::getId, dto.getId())
+ .last("limit 1").one();
+ if (old != null) {
+ return R.fail("该账号已存在");
+ }
XpWhitelist whitelist = this.getById(dto.getId());
StringBuilder operationContent = new StringBuilder("编辑账号:");
--
Gitblit v1.7.1