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

import net.northking.cctp.common.db.PaginationService;
import net.northking.cctp.dw.db.dao.MtCaseExecPassRatioDao;
import net.northking.cctp.dw.db.entity.DwManualExecJob;
import net.northking.cctp.dw.db.service.MtCaseExecPassRatioService;
import net.northking.cctp.dw.db.entity.MtCaseExecPassRatio;

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

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;


/**
 * 案例通过率分析
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2021-12-17 10:03:26  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "MtCaseExecPassRatioServiceImpl")
public class MtCaseExecPassRatioServiceImpl extends PaginationService<MtCaseExecPassRatio> implements MtCaseExecPassRatioService
{
private static final Logger logger = LoggerFactory.getLogger(MtCaseExecPassRatioServiceImpl.class);

  private final MtCaseExecPassRatioDao mtCaseExecPassRatioDao;

  public MtCaseExecPassRatioServiceImpl(MtCaseExecPassRatioDao mtCaseExecPassRatioDao) {this.mtCaseExecPassRatioDao = mtCaseExecPassRatioDao;}

  public BasicDao<MtCaseExecPassRatio> getDao() {return mtCaseExecPassRatioDao;}

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

  @Override
  protected void beforeInsert(MtCaseExecPassRatio mtCaseExecPassRatio) {

  }

  @Override
  protected void beforeUpdate(MtCaseExecPassRatio mtCaseExecPassRatio) {

  }

  @Override
  public Integer caseExecPassRatio(DwManualExecJob dwManualExecJob) {
    return mtCaseExecPassRatioDao.caseExecPassRatio(dwManualExecJob);
  }

  @Override
  public Integer deleteAllExecPassRatioDataByProjectIds(MtCaseExecPassRatio ratio) {
    return mtCaseExecPassRatioDao.deleteAllExecPassRatioDataByProjectIds(ratio);
  }
}

