luohairen
2024-11-28 b12df20c37588aa4f41a448a5646ce9a42feb0b3
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);
    }