From 173dbd52441847f53fa8116c1edd7fcab23ce0a1 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期四, 27 八月 2026 19:12:08 +0800
Subject: [PATCH] fix: 修复部门名称唯一性查询的SQL语句顺序
---
src/main/java/com/ruoyi/basic/service/impl/CustomerServiceImpl.java | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/basic/service/impl/CustomerServiceImpl.java b/src/main/java/com/ruoyi/basic/service/impl/CustomerServiceImpl.java
index 5bd8dbc..50f1078 100644
--- a/src/main/java/com/ruoyi/basic/service/impl/CustomerServiceImpl.java
+++ b/src/main/java/com/ruoyi/basic/service/impl/CustomerServiceImpl.java
@@ -431,6 +431,24 @@
}
@Override
+ public void handoverCustomer(CustomerDto customerDto) {
+ Customer customer = customerMapper.selectById(customerDto.getId());
+ if (customer == null) {
+ throw new ServiceException("瀹㈡埛涓嶅瓨鍦�");
+ }
+ if (customer.getType() != 0) {
+ throw new ServiceException("浠呯娴峰鎴锋敮鎸佷氦鎺�");
+ }
+ if (customerDto.getMaintainer() == null || customerDto.getMaintainer().trim().isEmpty()) {
+ throw new ServiceException("鏂扮淮鎶や汉涓嶈兘涓虹┖");
+ }
+ customer.setMaintainer(customerDto.getMaintainer());
+ customer.setMaintenanceTime(new Date());
+ customer.setCreateUser(customerDto.getMaintainerId());
+ customerMapper.updateById(customer);
+ }
+
+ @Override
public IPage<CustomerTransactionsVo> customewTransactions(Page page, String customerName) {
return customerMapper.customewTransactions(page, customerName);
}
--
Gitblit v1.9.3