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

import net.northking.cctp.common.http.QueryByPage;
import net.northking.cctp.dataPool.db.dao.DataRuleDao;
import net.northking.cctp.dataPool.db.service.DataRuleService;
import net.northking.cctp.dataPool.db.entity.DataRule;

import net.northking.cctp.common.db.BasicDao;
import net.northking.cctp.common.saas.db.TenantEntityService;

import net.northking.cctp.dataPool.dto.dataRule.DataRuleDetailDto;
import net.northking.cctp.dataPool.dto.dataRule.DataRuleQueryDto;
import net.northking.cctp.dataPool.dto.dataRule.DataRuleUpdateDto;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;


/**
 * 数据规则表
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2022-10-24 16:58:38  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "DataRuleServiceImpl")
public class DataRuleServiceImpl extends TenantEntityService<DataRule> implements DataRuleService
{

  private final DataRuleDao dataRuleDao;

  public DataRuleServiceImpl(DataRuleDao dataRuleDao) {this.dataRuleDao = dataRuleDao;}

  public BasicDao<DataRule> getDao() {return dataRuleDao;}

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


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


  @Override
  public Integer queryRuleByName(DataRuleUpdateDto dto) {
    return dataRuleDao.queryRuleByName(dto);
  }

  @Override
  public List<DataRuleDetailDto> getDataRules(QueryByPage<DataRuleQueryDto> queryByPage) {
    return dataRuleDao.getDataRules(queryByPage);
  }

    @Override
    public List<DataRule> queryByIdSet(Set<String> idSet) {
        return dataRuleDao.queryByIdSet(idSet);
    }
}

