| | |
| | | import com.ruoyi.doublePrevention.entity.PreventRiskCheckUnit;
|
| | | import com.ruoyi.doublePrevention.repository.PreventRiskCheckUnitRepository;
|
| | | import com.ruoyi.doublePrevention.service.baseService.PreventRiskCheckUnitService;
|
| | | import com.ruoyi.project.tr.baseCheckPoint.domain.BaseCheckPoint;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | @Service("PreventRiskCheckUnitService")
|
| | | public class PreventRiskCheckUnitServiceImpl implements PreventRiskCheckUnitService {
|
| | |
| | | public int insertPointAndMeasure(PreventRiskCheckUnit checkUnit) {
|
| | | return preventRiskCheckUnitRepository.insertPointAndMeasure(checkUnit);
|
| | | }
|
| | |
|
| | | /**
|
| | | * @description 根据远检查点获取原检查点与管控措施关联的记录
|
| | | * 通过riskId 查询管控措施列表
|
| | | */
|
| | | @Override
|
| | | public PreventRiskCheckUnit getRiskUnitByBaseCheckPointId(Long checkPointId) {
|
| | | return preventRiskCheckUnitRepository.getPointAndMeasureByPointId(checkPointId);
|
| | | public List<PreventRiskCheckUnit> getUnitByRiskId(String riskId) {
|
| | | return preventRiskCheckUnitRepository.getUnitByRiskId(riskId);
|
| | | }
|
| | | /**
|
| | | * 删除原检查点与管控措施的对应关系
|
| | | */
|
| | | @Override
|
| | | public int deletePointAndMeasure(String id) {
|
| | | return preventRiskCheckUnitRepository.deletePointAndMeasure(id);
|
| | | }
|
| | | /**
|
| | | * 通过baseCheckPointId 查询管控措施列表
|
| | | */
|
| | | @Override
|
| | | public PreventRiskCheckUnit getUnitByBaseCheckPointId(Long baseCheckPointId) {
|
| | | return preventRiskCheckUnitRepository.getUnitByBaseCheckPointId(baseCheckPointId);
|
| | | }
|
| | | }
|