双重预防项目-国泰新华二开定制版
heheng
昨天 d67bb56e504dddfbc9c6e6df94920a17380d9cb7
src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventReportConfigServiceImpl.java
@@ -1,43 +1,48 @@
package com.ruoyi.doublePrevention.service.baseService.impl;
import com.ruoyi.doublePrevention.entity.PreventReportConfig;
import com.ruoyi.doublePrevention.repository.PreventReportConfigRepository;
import com.ruoyi.doublePrevention.repository.param.PreventReportConfigUpdateParams;
import com.ruoyi.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 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);
    }
}
package com.ruoyi.doublePrevention.service.baseService.impl;
import com.ruoyi.doublePrevention.entity.PreventReportConfig;
import com.ruoyi.doublePrevention.repository.PreventReportConfigRepository;
import com.ruoyi.doublePrevention.repository.param.PreventReportConfigUpdateParams;
import com.ruoyi.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 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);
    }
    @Override
    public Integer getSpecPushData() {
        return preventReportConfigRepository.getSpecPushData();
    }
}