From ba2482dddc5df9f31fe9aef8543bef8453a22f88 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 24 二月 2025 22:05:40 +0800
Subject: [PATCH] 项目编辑bug
---
business/src/main/java/com/ycl/service/impl/ProjectInvestmentFundingServiceImpl.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/business/src/main/java/com/ycl/service/impl/ProjectInvestmentFundingServiceImpl.java b/business/src/main/java/com/ycl/service/impl/ProjectInvestmentFundingServiceImpl.java
index a23d64c..d9a9e1b 100644
--- a/business/src/main/java/com/ycl/service/impl/ProjectInvestmentFundingServiceImpl.java
+++ b/business/src/main/java/com/ycl/service/impl/ProjectInvestmentFundingServiceImpl.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.ycl.common.utils.SecurityUtils;
import com.ycl.domain.entity.ProjectInvestmentFunding;
import com.ycl.domain.entity.ProjectInvestmentInfo;
@@ -109,9 +110,9 @@
*/
@Override
public Result detail(Integer id) {
- QueryWrapper<ProjectInvestmentFunding> queryWrapper = new QueryWrapper<>();
- queryWrapper.eq("project_id",id);
- ProjectInvestmentFunding entity = baseMapper.selectOne(queryWrapper);
+ ProjectInvestmentFunding entity = new LambdaQueryChainWrapper<>(baseMapper)
+ .eq(ProjectInvestmentFunding::getProjectId, id)
+ .one();
ProjectInvestmentFundingVO vo =new ProjectInvestmentFundingVO();
if(entity!=null){
vo = ProjectInvestmentFundingVO.getVoByEntity(entity, null);
--
Gitblit v1.8.0