From b36dfcb807af748dabdbc76a134b0667196563f6 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期二, 10 三月 2026 14:37:43 +0800
Subject: [PATCH] feat(projectManagement): 完善项目信息管理功能
---
src/main/java/com/ruoyi/projectManagement/service/impl/handle/InfoHandleService.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/projectManagement/service/impl/handle/InfoHandleService.java b/src/main/java/com/ruoyi/projectManagement/service/impl/handle/InfoHandleService.java
index 74c392d..4f00fa6 100644
--- a/src/main/java/com/ruoyi/projectManagement/service/impl/handle/InfoHandleService.java
+++ b/src/main/java/com/ruoyi/projectManagement/service/impl/handle/InfoHandleService.java
@@ -4,6 +4,8 @@
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.google.common.collect.Lists;
+import com.ruoyi.basic.service.CustomerFollowUpFileService;
import com.ruoyi.common.enums.PlanStageEnum;
import com.ruoyi.common.enums.ReviewStatusEnum;
import com.ruoyi.common.utils.EnumUtil;
@@ -14,6 +16,7 @@
import com.ruoyi.projectManagement.pojo.PlanNode;
import com.ruoyi.projectManagement.service.PlanService;
import com.ruoyi.projectManagement.service.impl.PlanServiceImpl;
+import com.ruoyi.projectManagement.vo.PlanVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
@@ -40,6 +43,8 @@
private final PlanService planService;
+ private final CustomerFollowUpFileService customerFollowUpFileService;
+
@Transactional(rollbackFor = Exception.class)
public Long save(@NotNull SaveInfoDto saveInfoDto){
Info info = BeanUtil.copyProperties(saveInfoDto, Info.class);
@@ -66,6 +71,15 @@
return info.getId();
}
+ public SaveInfoDto getInfoById(@NotNull Long id){
+ Info info = infoMapper.selectById(id);
+ SaveInfoDto saveInfoDto = BeanUtil.copyProperties(info, SaveInfoDto.class);
+ // 闄勪欢澶勭悊
+ saveInfoDto.setTeamList(info.getTeam());
+ customerFollowUpFileService.fillAttachment(Lists.newArrayList(saveInfoDto), SaveInfoDto::getAttachment, SaveInfoDto::setAttachmentList);
+ return saveInfoDto;
+ }
+
private List<PlanStageDto> getPlanStageList(@NotNull Long planId) {
List<PlanNode> planNodeByPlanId = planService.getPlanNodeByPlanId(planId);
--
Gitblit v1.9.3