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

import net.northking.cctp.dw.db.dao.DwAtuScriptInfoDao;
import net.northking.cctp.dw.db.service.DwAtuScriptInfoService;
import net.northking.cctp.dw.db.entity.DwAtuScriptInfo;

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

import net.northking.cctp.dw.dto.atu.DwAtuScriptInfoDetailDto;
import net.northking.cctp.dw.dto.atu.DwAtuScriptInfoQueryDto;
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 = "DwAtuScriptInfoServiceImpl")
public class DwAtuScriptInfoServiceImpl extends PaginationService<DwAtuScriptInfo> implements DwAtuScriptInfoService
{
private static final Logger logger = LoggerFactory.getLogger(DwAtuScriptInfoServiceImpl.class);

  private final DwAtuScriptInfoDao dwAtuScriptInfoDao;

  public DwAtuScriptInfoServiceImpl(DwAtuScriptInfoDao dwAtuScriptInfoDao) {this.dwAtuScriptInfoDao = dwAtuScriptInfoDao;}

  public BasicDao<DwAtuScriptInfo> getDao() {return dwAtuScriptInfoDao;}

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

  @Override
  protected void beforeInsert(DwAtuScriptInfo dwAtuScriptInfo) {

  }

  @Override
  protected void beforeUpdate(DwAtuScriptInfo dwAtuScriptInfo) {

  }

  @Override
  public List<DwAtuScriptInfoDetailDto> countByGroup(DwAtuScriptInfoQueryDto query) {
    return dwAtuScriptInfoDao.countByGroup(query);
  }


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




}

