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

import net.northking.cctp.common.db.BasicDao;
import net.northking.cctp.common.db.PaginationService;
import net.northking.cctp.dw.db.dao.PointCompleteDetailsDao;
import net.northking.cctp.dw.db.entity.DwTestPoint;
import net.northking.cctp.dw.db.entity.PointCompleteDetails;
import net.northking.cctp.dw.db.service.PointCompleteDetailsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;

import java.util.Date;


/**
 * 测试点完成详情（按人员或模块）,包括周、日
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2021-12-14 15:12:07  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "PointCompleteDetailsServiceImpl")
public class PointCompleteDetailsServiceImpl extends PaginationService<PointCompleteDetails> implements PointCompleteDetailsService
{
private static final Logger logger = LoggerFactory.getLogger(PointCompleteDetailsServiceImpl.class);

  private final PointCompleteDetailsDao pointCompleteDetailsDao;

  public PointCompleteDetailsServiceImpl(PointCompleteDetailsDao pointCompleteDetailsDao) {this.pointCompleteDetailsDao = pointCompleteDetailsDao;}

  public BasicDao<PointCompleteDetails> getDao() {return pointCompleteDetailsDao;}

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

  @Override
  protected void beforeInsert(PointCompleteDetails pointCompleteDetails) {

  }

  @Override
  protected void beforeUpdate(PointCompleteDetails pointCompleteDetails) {

  }

  @Override
  public Integer testPointComplete(Date lastSat, DwTestPoint dwTestPoint) {
    return pointCompleteDetailsDao.testPointComplete(lastSat,dwTestPoint);
  }

  @Override
  public Integer deleteAllCompleteByProjectIds(PointCompleteDetails pointCompleteDetails) {
    return pointCompleteDetailsDao.deleteAllCompleteByProjectIds(pointCompleteDetails);
  }

}

