| | |
| | | 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);
|
| | | }
|
| | | }
|
| | | 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 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 { |
| | | |
| | | @Autowired |
| | | private PreventRiskCheckUnitRepository preventRiskCheckUnitRepository; |
| | | /** |
| | | * 保存原检查点与管控措施的对应关系 |
| | | */ |
| | | @Override |
| | | public int insertPointAndMeasure(PreventRiskCheckUnit checkUnit) { |
| | | return preventRiskCheckUnitRepository.insertPointAndMeasure(checkUnit); |
| | | } |
| | | /** |
| | | * 通过riskId 查询管控措施列表 |
| | | */ |
| | | @Override |
| | | 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); |
| | | } |
| | | |
| | | } |