双重预防项目-国泰新华二开定制版
16639036659
2022-09-27 7e7195766eb018b4ba00b2d0663f6dcb11adefc8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
    }
}