songhuangfeng123
2022-07-20 aa3dadd645d92ee001d17d2b286486ebdf6ad654
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
39
40
41
package com.gkhy.safePlatform.incidentManage.service.baseService.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gkhy.safePlatform.incidentManage.entity.AccidentReportFileInfo;
import com.gkhy.safePlatform.incidentManage.entity.AccidentReportFileInfoDO;
import com.gkhy.safePlatform.incidentManage.repository.AccidentReportFileInfoRepository;
import com.gkhy.safePlatform.incidentManage.service.baseService.AccidentReportFileInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("accidentReportFileInfoService")
public class AccidentReportFileInfoServiceImpl extends ServiceImpl<AccidentReportFileInfoRepository, AccidentReportFileInfo> implements AccidentReportFileInfoService {
 
    @Autowired
    private AccidentReportFileInfoRepository accidentReportFileInfoRepository;
 
 
    @Override
    public List<AccidentReportFileInfoDO> selectByAccidentReportId(Long id) {
        return accidentReportFileInfoRepository.selectByAccidentReportId(id);
    }
 
    @Override
    public void addAccidentReportFile(AccidentReportFileInfo AccidentReportFileInfo) {
        accidentReportFileInfoRepository.addAccidentReportFile(AccidentReportFileInfo);
    }
 
    @Override
    public void deleteAccidentReportFileByAccidentReportId(Long accidentReportId) {
        accidentReportFileInfoRepository.deleteAccidentReportFileByAccidentReportId(accidentReportId);
    }
 
    @Override
    public void deleteAccidentReportFileByIds(List<Long> ids) {
        accidentReportFileInfoRepository.deleteAccidentReportFileByIds(ids);
    }
 
 
}