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

import net.northking.cctp.common.db.BasicDao;
import net.northking.cctp.common.saas.db.TenantEntityService;
import net.northking.cctp.scriptcase.db.dao.AtuScriptVersionDao;
import net.northking.cctp.scriptcase.db.entity.AtuScriptVersion;
import net.northking.cctp.scriptcase.db.service.AtuScriptVersionService;
import net.northking.cctp.scriptcase.dto.atuScript.atuScriptVersion.AtuScriptVersionResultDto;
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-10-18 17:29:31  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "AtuScriptVersionServiceImpl")
public class AtuScriptVersionServiceImpl extends TenantEntityService<AtuScriptVersion> implements AtuScriptVersionService
{
private static final Logger logger = LoggerFactory.getLogger(AtuScriptVersionServiceImpl.class);

  private final AtuScriptVersionDao atuScriptVersionDao;

  public AtuScriptVersionServiceImpl(AtuScriptVersionDao atuScriptVersionDao) {this.atuScriptVersionDao = atuScriptVersionDao;}

  public BasicDao<AtuScriptVersion> getDao() {return atuScriptVersionDao;}

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

    @Override
    public AtuScriptVersion queryByScriptIdAndVersion(String scriptVersion, String scriptId) {
        return this.atuScriptVersionDao.queryByScriptIdAndVersion(scriptVersion, scriptId);
    }

  @Override
  public List<AtuScriptVersionResultDto> queryCountNum() {
    return this.atuScriptVersionDao.queryCountNum();
  }







}

