From b3fc7c3428ddf036b1a632f62c694a3d28b1a306 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期五, 27 三月 2026 15:28:24 +0800
Subject: [PATCH] fix: 注释客户跟随
---
src/main/java/com/ruoyi/basic/service/impl/CustomerServiceImpl.java | 50 ++++++++++++++++++++++++++------------------------
1 files changed, 26 insertions(+), 24 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 b00f79a..20ede93 100644
--- a/src/main/java/com/ruoyi/basic/service/impl/CustomerServiceImpl.java
+++ b/src/main/java/com/ruoyi/basic/service/impl/CustomerServiceImpl.java
@@ -86,32 +86,34 @@
BeanUtils.copyProperties(customer, dto);
// 鏌ヨ璺熻繘璁板綍
- List<CustomerFollowUp> followUpList = customerFollowUpService.list(
- new LambdaQueryWrapper<CustomerFollowUp>()
- .eq(CustomerFollowUp::getCustomerId, id)
- .orderByDesc(CustomerFollowUp::getFollowUpTime)
- );
-
- if (!CollectionUtils.isEmpty(followUpList)) {
- List<CustomerFollowUpDto> followUpDtoList = followUpList.stream().map(followUp -> {
- CustomerFollowUpDto followUpDto = new CustomerFollowUpDto();
- BeanUtils.copyProperties(followUp, followUpDto);
-
- // 鏌ヨ闄勪欢
- List<CustomerFollowUpFile> fileList = customerFollowUpFileService.list(
- new LambdaQueryWrapper<CustomerFollowUpFile>()
- .eq(CustomerFollowUpFile::getFollowUpId, followUp.getId())
- );
- followUpDto.setFileList(fileList);
-
- return followUpDto;
- }).collect(Collectors.toList());
-
- dto.setFollowUpList(followUpDtoList);
- }
+// List<CustomerFollowUp> followUpList = customerFollowUpService.list(
+// new LambdaQueryWrapper<CustomerFollowUp>()
+// .eq(CustomerFollowUp::getCustomerId, id)
+// .orderByDesc(CustomerFollowUp::getFollowUpTime)
+// );
+//
+// if (!CollectionUtils.isEmpty(followUpList)) {
+// List<CustomerFollowUpDto> followUpDtoList = followUpList.stream().map(followUp -> {
+// CustomerFollowUpDto followUpDto = new CustomerFollowUpDto();
+// BeanUtils.copyProperties(followUp, followUpDto);
+//
+// // 鏌ヨ闄勪欢
+// List<CustomerFollowUpFile> fileList = customerFollowUpFileService.list(
+// new LambdaQueryWrapper<CustomerFollowUpFile>()
+// .eq(CustomerFollowUpFile::getFollowUpId, followUp.getId())
+// );
+// followUpDto.setFileList(fileList);
+//
+// return followUpDto;
+// }).collect(Collectors.toList());
+//
+// dto.setFollowUpList(followUpDtoList);
+// }
// 鍦板尯鍚嶇О
CustomerRegions customerRegions = customerRegionsService.getById(customer.getRegionsId());
- dto.setRegionsName(customerRegions.getRegionsName());
+ if (customerRegions != null) {
+ dto.setRegionsName(customerRegions.getRegionsName());
+ }
return dto;
}
--
Gitblit v1.9.3