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

import net.northking.cctp.common.db.BasicDao;
import net.northking.cctp.common.saas.db.TenantPaginationService;
import net.northking.cctp.project.db.dao.CpProjectEnvDsDao;
import net.northking.cctp.project.db.entity.CpProjectEnvDs;
import net.northking.cctp.project.db.service.CpProjectEnvDsService;
import net.northking.cctp.project.dto.env.CpProjectEnvDsDeleteDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 系统环境数据源信息
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2023-09-12 10:47:07  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "CpProjectEerviceImpl")
public class CpProjectEnvDsServiceImpl extends TenantPaginationService<CpProjectEnvDs> implements CpProjectEnvDsService
{
private static final Logger logger = LoggerFactory.getLogger(CpProjectEnvDsServiceImpl.class);

  private final CpProjectEnvDsDao cpProjectEnvDsDao;

  public CpProjectEnvDsServiceImpl(CpProjectEnvDsDao cpProjectEnvDsDao) {this.cpProjectEnvDsDao = cpProjectEnvDsDao;}

  @Override
  public BasicDao<CpProjectEnvDs> getDao() {return cpProjectEnvDsDao;}

  @Override
  public CpProjectEnvDs createEntity() { return new CpProjectEnvDs();}

    @Override
    public int deleteByProjectIdNoInEnvIds(CpProjectEnvDsDeleteDto deleteDto) {
        return this.cpProjectEnvDsDao.deleteByProjectIdNoInEnvIds(deleteDto);
    }

  @Override
  public List<CpProjectEnvDs> queryEnvDsByDto(CpProjectEnvDs envDs) {
    return this.cpProjectEnvDsDao.queryEnvDsByDto(envDs);
  }


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




}

