/*
* 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.DataResourcePackageDao;
import net.northking.cctp.dataPool.db.service.DataResourcePackageService;
import net.northking.cctp.dataPool.db.entity.DataResourcePackage;

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

import net.northking.cctp.dataPool.dto.dataRule.DataResourcePackageDetailDto;
import net.northking.cctp.dataPool.dto.dataRule.DataResourcePackageQueryDto;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 资源包
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2022-10-24 16:58:38  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "DataResourcePackageServiceImpl")
public class DataResourcePackageServiceImpl extends TenantEntityService<DataResourcePackage> implements DataResourcePackageService
{

  private final DataResourcePackageDao dataResourcePackageDao;

  public DataResourcePackageServiceImpl(DataResourcePackageDao dataResourcePackageDao) {this.dataResourcePackageDao = dataResourcePackageDao;}

  public BasicDao<DataResourcePackage> getDao() {return dataResourcePackageDao;}

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


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


  @Override
  public List<DataResourcePackageDetailDto> getDataResourcePackages(QueryByPage<DataResourcePackageQueryDto> queryByPage) {
    return dataResourcePackageDao.getDataResourcePackages(queryByPage);
  }

  @Override
  public List<DataResourcePackage> queryByIds(List<String> idList) {
    return dataResourcePackageDao.queryByIds(idList);
  }
}

