双重预防项目-国泰新华二开定制版
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
30
31
32
33
34
35
36
37
38
package com.ruoyi.doublePrevention.service.baseService.impl;
 
import com.ruoyi.doublePrevention.entity.PreventRiskJobAndMeasure;
import com.ruoyi.doublePrevention.repository.PreventRiskJobAndMeasureRepository;
import com.ruoyi.doublePrevention.service.baseService.PreventRiskJobAndMeasureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
@Service("PreventRiskJobAndMeasureService")
public class PreventRiskJobAndMeasureServiceImpl implements PreventRiskJobAndMeasureService {
 
    @Autowired
    private PreventRiskJobAndMeasureRepository preventRiskJobAndMeasureRepository;
 
    /**
     * 插入管控措施与job的对应关系
     * */
    @Override
    public int insertJobAndMeasure(PreventRiskJobAndMeasure jobAndMeasure) {
        return preventRiskJobAndMeasureRepository.insertJobAndMeasure(jobAndMeasure);
    }
 
    /**
     * 查询JobAndMeasure - By JobId
     */
    @Override
    public PreventRiskJobAndMeasure getJobAndMeasureByJobId(Long jobId) {
        return preventRiskJobAndMeasureRepository.getJobAndMeasureByJobId(jobId);
    }
    /**
     * 删除job管控措施的附属表关联信息
     */
    @Override
    public int deleteJobAndMeasure(Long jobId) {
        return preventRiskJobAndMeasureRepository.deleteJobAndMeasure(jobId);
    }
 
}