package com.hotent.project.manager.impl;/**
 * @program: cbjs-mvue-master
 * @description:
 * @author: zhao yue yue
 * @create: 2025-11-18 14:48
 */

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hotent.base.exception.BaseException;
import com.hotent.base.manager.impl.BaseManagerImpl;
import com.hotent.base.util.StringUtil;
import com.hotent.project.dao.CostProjectSuperviseDao;
import com.hotent.project.dao.CostProjectSuperviseDataDao;
import com.hotent.project.manager.CostProjectSuperviseDataManager;
import com.hotent.project.manager.CostProjectSuperviseManager;
import com.hotent.project.model.CostProjectSupervise;
import com.hotent.project.model.CostProjectSuperviseData;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 *@author: zhao yue yue
 *@create: 2025-11-18 14:48
 */
@Service
public class CostProjectSuperviseDataManagerImpl  extends BaseManagerImpl<CostProjectSuperviseDataDao, CostProjectSuperviseData> implements CostProjectSuperviseDataManager {
    @Override
    public List<CostProjectSuperviseData> getListBySupervise(String id) {
        if (StringUtil.isEmpty(id)){
            throw new BaseException("id不能为空");
        }
        QueryWrapper<CostProjectSuperviseData> wrapper = new QueryWrapper<>();
        wrapper.eq("supervise_id",id);

        return this.list(wrapper);
    }
}
