郑永安
2023-06-19 7a6abd05683528032687c75e80e0bd2030a3e46c
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
42
43
44
45
46
47
48
package com.gkhy.safePlatform.doublePrevention.service.baseService.impl;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gkhy.safePlatform.doublePrevention.entity.PreventReportConfig;
import com.gkhy.safePlatform.doublePrevention.entity.PreventReportConfigLog;
import com.gkhy.safePlatform.doublePrevention.entity.dto.req.PreventReportConfigLogQueryReqDTO;
import com.gkhy.safePlatform.doublePrevention.repository.PreventReportConfigRepository;
import com.gkhy.safePlatform.doublePrevention.repository.param.PreventReportConfigUpdateParams;
import com.gkhy.safePlatform.doublePrevention.service.baseService.PreventReportConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("PreventReportConfigService")
public class PreventReportConfigServiceImpl extends ServiceImpl<PreventReportConfigRepository, PreventReportConfig> implements PreventReportConfigService {
 
    @Autowired
    private PreventReportConfigRepository preventReportConfigRepository;
 
    /**
     * 数据上报配置-查询
     */
    @Override
    public List<PreventReportConfig> ListReportConfigs() {
        return preventReportConfigRepository.ListReportConfigs();
    }
 
    /**
     * 数据上报配置-修改
     */
    @Override
    public int updateReportConfig(PreventReportConfigUpdateParams updateParams) {
        return preventReportConfigRepository.updateReportConfig(updateParams);
    }
 
    /**
     * 数据上报配置-按照id查询
     */
    @Override
    public PreventReportConfig getReportConfigById(int Id) {
        return preventReportConfigRepository.selectById(Id);
    }
 
 
}