郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
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
package com.gk.hotwork.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.gk.hotwork.doublePrevention.entity.PreventReportConfigLog;
import com.gk.hotwork.doublePrevention.entity.dto.req.PreventReportConfigLogQueryReqDTO;
import com.gk.hotwork.doublePrevention.repository.PreventReportConfigLogRepository;
import com.gk.hotwork.doublePrevention.service.baseService.PreventReportConfigLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
@Service("PreventReportConfigLogService")
public class PreventReportConfigLogServiceImpl extends ServiceImpl<PreventReportConfigLogRepository, PreventReportConfigLog> implements PreventReportConfigLogService {
 
    @Autowired
    private PreventReportConfigLogRepository preventReportConfigLogRepository;
 
    @Override
    public int insertOldReportConfig(PreventReportConfigLog preventReportConfigLog) {
        return preventReportConfigLogRepository.insert(preventReportConfigLog);
    }
 
    /**
     * 数据上报配置历史记录-查询
     */
    @Override
    public IPage<PreventReportConfigLog> getReportConfigLogPage(Page<Object> page, PreventReportConfigLogQueryReqDTO queryReqDTO) {
        return preventReportConfigLogRepository.getReportConfigLogPage(page, queryReqDTO);
    }
}