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

import net.northking.cctp.common.saas.db.TenantEntityService;
import net.northking.cctp.project.db.dao.CpProjectSoftwareDao;
import net.northking.cctp.project.db.service.CpProjectSoftwareService;
import net.northking.cctp.project.db.entity.CpProjectSoftware;

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-09-14 10:40:30  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "CpProjectSoftwareServiceImpl")
public class CpProjectSoftwareServiceImpl extends TenantEntityService<CpProjectSoftware> implements CpProjectSoftwareService
{
private static final Logger logger = LoggerFactory.getLogger(CpProjectSoftwareServiceImpl.class);

  private final CpProjectSoftwareDao cpProjectSoftwareDao;

  public CpProjectSoftwareServiceImpl(CpProjectSoftwareDao cpProjectSoftwareDao) {this.cpProjectSoftwareDao = cpProjectSoftwareDao;}

  public BasicDao<CpProjectSoftware> getDao() {return cpProjectSoftwareDao;}

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

  @Override
  public void deleteByProjectId(String projectId) {
    cpProjectSoftwareDao.deleteByProjectId(projectId);
  }

  @Override
  public void saveProjectSoftware(CpProjectSoftware cpProjectSoftware) {
    cpProjectSoftwareDao.saveProjectSoftware(cpProjectSoftware);
  }
}

