package com.ruoyi.doublePrevention.service.baseService.impl; import com.ruoyi.doublePrevention.entity.PreventRiskDangerCheckLog; import com.ruoyi.doublePrevention.repository.PreventRiskDangerCheckLogRepository; import com.ruoyi.doublePrevention.service.baseService.PreventRiskDangerCheckLogService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service("PreventRiskDangerCheckLogService") public class PreventRiskDangerCheckLogServiceImpl implements PreventRiskDangerCheckLogService { @Autowired private PreventRiskDangerCheckLogRepository preventRiskDangerCheckLogRepository; /** * 定时生成排查任务记录时, * 插入排查记录附属表 */ @Override public int insertDangerCheckLog(PreventRiskDangerCheckLog dangerCheck) { return preventRiskDangerCheckLogRepository.insertDangerCheckLog(dangerCheck); } /** * 删除定时核查任务 * */ @Override public int deleteDangerCheck(Long checkId) { return preventRiskDangerCheckLogRepository.deleteDangerCheck(checkId); } }