From ea45679770bdc41e84a66d40f72dd79d87806704 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 03 三月 2025 11:02:26 +0800
Subject: [PATCH] bug
---
business/src/main/java/com/ycl/service/impl/ProjectInvestmentInfoServiceImpl.java | 11 +++++++++--
1 files changed, 9 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..710c56e 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;
@@ -44,6 +45,7 @@
entity.setUpdateBy(userId);
baseMapper.insert(entity);
+ //閬垮厤鏂板涓�涓悗閲嶅鏂板杩斿洖id缁欏墠绔垽鏂�
return Result.ok("娣诲姞鎴愬姛").data(entity.getId());
}
@@ -106,8 +108,13 @@
*/
@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);
+ ProjectInvestmentInfoVO vo = new ProjectInvestmentInfoVO();
+ if(entity!=null) {
+ vo = ProjectInvestmentInfoVO.getVoByEntity(entity, null);
+ }
return Result.ok().data(vo);
}
--
Gitblit v1.8.0