From b12df20c37588aa4f41a448a5646ce9a42feb0b3 Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期四, 28 十一月 2024 19:11:55 +0800
Subject: [PATCH] 文件上传

---
 business/src/main/java/com/ycl/service/impl/ProjectInvestmentInfoServiceImpl.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/business/src/main/java/com/ycl/service/impl/ProjectInvestmentInfoServiceImpl.java b/business/src/main/java/com/ycl/service/impl/ProjectInvestmentInfoServiceImpl.java
index d054f1a..ce9d181 100644
--- a/business/src/main/java/com/ycl/service/impl/ProjectInvestmentInfoServiceImpl.java
+++ b/business/src/main/java/com/ycl/service/impl/ProjectInvestmentInfoServiceImpl.java
@@ -1,5 +1,6 @@
 package com.ycl.service.impl;
 
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.ycl.common.utils.SecurityUtils;
 import com.ycl.domain.entity.ProjectInvestmentInfo;
@@ -106,8 +107,11 @@
      */
     @Override
     public Result detail(Integer id) {
-        ProjectInvestmentInfoVO vo = baseMapper.getById(id);
-        Assert.notNull(vo, "璁板綍涓嶅瓨鍦�");
+        QueryWrapper<ProjectInvestmentInfo> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("project_id",id);
+        ProjectInvestmentInfo entity = baseMapper.selectOne(queryWrapper);
+        Assert.notNull(entity, "璁板綍涓嶅瓨鍦�");
+        ProjectInvestmentInfoVO vo = ProjectInvestmentInfoVO.getVoByEntity(entity, null);
         return Result.ok().data(vo);
     }
 

--
Gitblit v1.8.0