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

import net.northking.cctp.executePlan.db.dao.AtuPlanDeviceLinkDao;
import net.northking.cctp.executePlan.db.service.AtuPlanDeviceLinkService;
import net.northking.cctp.executePlan.db.entity.AtuPlanDeviceLink;

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

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


/**
 * 计划设备关联表
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2022-12-06 17:37:24  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Service
@ConditionalOnMissingBean(name = "AtuPlanDeviceLinkServiceImpl")
public class AtuPlanDeviceLinkServiceImpl extends PaginationService<AtuPlanDeviceLink> implements AtuPlanDeviceLinkService
{
private static final Logger logger = LoggerFactory.getLogger(AtuPlanDeviceLinkServiceImpl.class);

  private final AtuPlanDeviceLinkDao atuPlanDeviceLinkDao;

  public AtuPlanDeviceLinkServiceImpl(AtuPlanDeviceLinkDao atuPlanDeviceLinkDao) {this.atuPlanDeviceLinkDao = atuPlanDeviceLinkDao;}

  @Override
  public BasicDao<AtuPlanDeviceLink> getDao() {return atuPlanDeviceLinkDao;}

  @Override
  public AtuPlanDeviceLink createEntity() { return new AtuPlanDeviceLink();}

  @Override
  protected void beforeInsert(AtuPlanDeviceLink record) {

  }

  @Override
  protected void beforeUpdate(AtuPlanDeviceLink record) {

  }


  @Override
  public void deleteDeviceIdByPlanId(String planId) {
    this.atuPlanDeviceLinkDao.deleteByPlanId(planId);
  }


// ----      The End by Generator     ----//




}

