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

import net.northking.cctp.testbug.db.dao.BugRecordDao;
import net.northking.cctp.testbug.db.service.BugRecordService;
import net.northking.cctp.testbug.db.entity.BugRecord;

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

import net.northking.cctp.testbug.dto.BugRecordDetailDto;
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:  2021-10-08 15:56:45  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "BugRecordServiceImpl")
public class BugRecordServiceImpl extends TenantEntityService<BugRecord> implements BugRecordService
{
private static final Logger logger = LoggerFactory.getLogger(BugRecordServiceImpl.class);

  private final BugRecordDao bugRecordDao;

  public BugRecordServiceImpl(BugRecordDao bugRecordDao) {this.bugRecordDao = bugRecordDao;}

  public BasicDao<BugRecord> getDao() {return bugRecordDao;}

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

  @Override
  public List<BugRecordDetailDto> queryByBugIds(List<String> bugIds) {
    return bugRecordDao.queryByBugIds(bugIds);
  }

  @Override
  public void pubAdd(BugRecord bugRecordAddDto) {
    bugRecordDao.pubAdd(bugRecordAddDto);
  }







}

