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

import net.northking.cctp.dw.db.dao.DwReBusComponentDao;
import net.northking.cctp.dw.db.service.DwReBusComponentService;
import net.northking.cctp.dw.db.entity.DwReBusComponent;

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

import net.northking.cctp.dw.dto.atu.DwReBusComponentDetailDto;
import net.northking.cctp.dw.dto.atu.DwReBusComponentQueryDto;
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:  2022-11-25 11:15:20  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "DwReBusComponentServiceImpl")
public class DwReBusComponentServiceImpl extends PaginationService<DwReBusComponent> implements DwReBusComponentService
{
private static final Logger logger = LoggerFactory.getLogger(DwReBusComponentServiceImpl.class);

  private final DwReBusComponentDao dwReBusComponentDao;

  public DwReBusComponentServiceImpl(DwReBusComponentDao dwReBusComponentDao) {this.dwReBusComponentDao = dwReBusComponentDao;}

  public BasicDao<DwReBusComponent> getDao() {return dwReBusComponentDao;}

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

  @Override
  protected void beforeInsert(DwReBusComponent dwReBusComponent) {

  }

  @Override
  protected void beforeUpdate(DwReBusComponent dwReBusComponent) {

  }

  @Override
  public List<DwReBusComponentDetailDto> countByGroup(DwReBusComponentQueryDto query) {
    return dwReBusComponentDao.countByGroup(query);
  }


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




}

