package com.ruoyi.doublePrevention.service.baseService.impl; import com.ruoyi.doublePrevention.entity.PreventRiskCheckUnit; import com.ruoyi.doublePrevention.repository.PreventRiskCheckUnitRepository; import com.ruoyi.doublePrevention.service.baseService.PreventRiskCheckUnitService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service("PreventRiskCheckUnitService") public class PreventRiskCheckUnitServiceImpl implements PreventRiskCheckUnitService { @Autowired private PreventRiskCheckUnitRepository preventRiskCheckUnitRepository; /** * 保存原检查点与管控措施的对应关系 */ @Override public int insertPointAndMeasure(PreventRiskCheckUnit checkUnit) { return preventRiskCheckUnitRepository.insertPointAndMeasure(checkUnit); } /** * @description 根据远检查点获取原检查点与管控措施关联的记录 */ @Override public PreventRiskCheckUnit getRiskUnitByBaseCheckPointId(Long checkPointId) { return preventRiskCheckUnitRepository.getPointAndMeasureByPointId(checkPointId); } }