package com.ruoyi.doublePrevention.service.baseService.impl; import com.ruoyi.doublePrevention.entity.PreventRiskControlTemplate; import com.ruoyi.doublePrevention.repository.PreventRiskControlTemplateRepository; import com.ruoyi.doublePrevention.service.baseService.PreventRiskControlTemplateService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service("PreventRiskControlTemplateService") public class PreventRiskControlTemplateServiceImpl implements PreventRiskControlTemplateService { @Autowired private PreventRiskControlTemplateRepository preventRiskControlTemplateRepository; /** * 管控措施- 获取管控措施模板 */ @Override public List listMeasureTemplates() { return preventRiskControlTemplateRepository.listMeasureTemplates(); } /** * 管控措施- 获取管控措施模板 - by id */ @Override public PreventRiskControlTemplate getControlTemplateById(Byte classify2) { return preventRiskControlTemplateRepository.getControlTemplateById(classify2); } }