From 0e420d68f407fde240709ac1800da20b0bb99490 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 09 六月 2026 16:06:16 +0800
Subject: [PATCH] feat:反审核操作。可以对已审核的订单进行反审核,反审核的时候可以选择作废还是重新生成一条,并记录反审核描述。选择作废的话则不生成新增订单。选择重新生成的话则跳转到新增台账页面对反审核的销售产品进行编辑保存重新生成一条新增的订单。反审核的订单即使是发货了还是可以反审核,并且需要将对应的入库、出库、发货进行作废。

---
 src/main/java/com/ruoyi/basic/service/impl/CustomerFollowUpFileServiceImpl.java |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/ruoyi/basic/service/impl/CustomerFollowUpFileServiceImpl.java b/src/main/java/com/ruoyi/basic/service/impl/CustomerFollowUpFileServiceImpl.java
index 6d4d4e5..628dcb4 100644
--- a/src/main/java/com/ruoyi/basic/service/impl/CustomerFollowUpFileServiceImpl.java
+++ b/src/main/java/com/ruoyi/basic/service/impl/CustomerFollowUpFileServiceImpl.java
@@ -11,6 +11,8 @@
 import com.ruoyi.basic.service.CustomerFollowUpService;
 import com.ruoyi.common.vo.SimpleFileVo;
 import lombok.RequiredArgsConstructor;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 
 import java.util.*;
@@ -28,10 +30,11 @@
  * @since 2026/03/04 14:53
  */
 @Service
-@RequiredArgsConstructor
 public class CustomerFollowUpFileServiceImpl extends ServiceImpl<CustomerFollowUpFileMapper, CustomerFollowUpFile> implements CustomerFollowUpFileService {
 
-    private final CustomerFollowUpService customerFollowUpService;
+    @Autowired
+    @Lazy
+    private CustomerFollowUpService customerFollowUpService;
 
 
     @Override
@@ -64,7 +67,8 @@
             if (StrUtil.isNotBlank(attachmentIds)) {
                 List<SimpleFileVo> fileVos = Arrays.stream(attachmentIds.split(","))
                         .map(Long::valueOf)
-                        .map(it->collectMap.getOrDefault(it, (SimpleFileVo) Collections.emptyList()))
+                        .map(it->collectMap.getOrDefault(it, null))
+                        .filter(Objects::nonNull)
                         .collect(Collectors.toList());
                 setAttachmentList.accept(t, fileVos);
             }

--
Gitblit v1.9.3