/*
* Copyright (c) 京北方信息技术股份有限公司 Corporation 2023 . All rights reserved.
*
*/
package net.northking.cctp.dataPool.db.impl;

import net.northking.cctp.dataPool.db.dao.DataSetEnvRelDao;
import net.northking.cctp.dataPool.db.service.DataSetEnvRelService;
import net.northking.cctp.dataPool.db.entity.DataSetEnvRel;

import net.northking.cctp.common.db.BasicDao;
import net.northking.cctp.common.db.PaginationService;

import net.northking.cctp.dataPool.dto.dataSets.AtuScriptInputSetQuoteFeignDto;
import net.northking.cctp.dataPool.dto.dataSets.AtuScriptInputSetQuoteFieldDto;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 数据集环境关联表
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2023-08-23 17:53:02  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "DataSetEnvRelServiceImpl")
public class DataSetEnvRelServiceImpl extends PaginationService<DataSetEnvRel> implements DataSetEnvRelService
{

  private final DataSetEnvRelDao dataSetEnvRelDao;

  public DataSetEnvRelServiceImpl(DataSetEnvRelDao dataSetEnvRelDao) {this.dataSetEnvRelDao = dataSetEnvRelDao;}

  public BasicDao<DataSetEnvRel> getDao() {return dataSetEnvRelDao;}

  public DataSetEnvRel createEntity() { return new DataSetEnvRel();}

  @Override
  protected void beforeInsert(DataSetEnvRel record) {

  }

  @Override
  protected void beforeUpdate(DataSetEnvRel record) {

  }

  @Override
  public AtuScriptInputSetQuoteFieldDto selectDataUrlAndTreeName(AtuScriptInputSetQuoteFieldDto atuScriptInputSetQuoteFieldDto) {
    return dataSetEnvRelDao.selectDataUrlAndTreeName(atuScriptInputSetQuoteFieldDto);
  }

  @Override
  public List<AtuScriptInputSetQuoteFeignDto> getDataSetFile(List<String> list, String envId) {
    return dataSetEnvRelDao.getDataSetFile(list, envId);
  }


// ----      The End by Generator     ----//




}

