From 1b9936ba920d65df09ab8dba79c6252568ee26e4 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 26 三月 2025 12:16:02 +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