From 6d86cb5870d09c7773bd276d8869484546cc4f85 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 28 十一月 2024 02:46:41 +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