package com.gkhy.safePlatform.doublePrevention.service.baseService.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gkhy.safePlatform.doublePrevention.entity.CJReport.PreventCJReportConfig; import com.gkhy.safePlatform.doublePrevention.entity.PreventReportConfig; import com.gkhy.safePlatform.doublePrevention.repository.PreventCJReportConfigRepository; import com.gkhy.safePlatform.doublePrevention.repository.PreventReportConfigRepository; import com.gkhy.safePlatform.doublePrevention.repository.param.PreventReportConfigUpdateParams; import com.gkhy.safePlatform.doublePrevention.service.baseService.PreventCJReportConfigService; 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("PreventCJReportConfigService") public class PreventCJReportConfigServiceImpl extends ServiceImpl implements PreventCJReportConfigService { @Autowired private PreventCJReportConfigRepository preventCJReportConfigRepository; /** * 数据上报配置-查询 */ @Override public List ListReportConfigs() { return preventCJReportConfigRepository.ListReportConfigs(); } /** * 数据上报配置-修改 */ @Override public int updateReportConfig(PreventReportConfigUpdateParams updateParams) { return preventCJReportConfigRepository.updateReportConfig(updateParams); } /** * 数据上报配置-按照id查询 */ @Override public PreventCJReportConfig getReportConfigById(int Id) { return preventCJReportConfigRepository.selectById(Id); } }