| | |
| | |
|
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
| | | import com.ruoyi.doublePrevention.entity.PreventRiskUnitUuid;
|
| | | import com.ruoyi.doublePrevention.enums.E;
|
| | | import com.ruoyi.doublePrevention.exception.AusinessException;
|
| | | import com.ruoyi.doublePrevention.repository.PreventRiskUnitUuidRepository;
|
| | | import com.ruoyi.doublePrevention.repository.param.HandlerReportParam;
|
| | | import com.ruoyi.doublePrevention.service.baseService.PreventRiskUnitUuidService;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | @Service("PreventRiskUnitUuidService")
|
| | | public class PreventRiskUnitUuidServiceImpl implements PreventRiskUnitUuidService {
|
| | |
| | | public int deleteRiskUnit(String[] riskListIds) {
|
| | | return preventRiskUnitUuidRepository.deleteRiskUnit(riskListIds);
|
| | | }
|
| | |
|
| | |
|
| | | /**
|
| | | * 检索需要上报的数据
|
| | | */
|
| | | @Override
|
| | | public List<PreventRiskUnitUuid> listRiskAnaUnit() {
|
| | | return preventRiskUnitUuidRepository.listRiskAnaUnit();
|
| | | }
|
| | | /**
|
| | | * 修改已经被检索读取完成数据的状态
|
| | | */
|
| | | @Override
|
| | | public int updateReportStatus(HandlerReportParam handlerReportParam) {
|
| | | int result = preventRiskUnitUuidRepository.updateReportStatus(handlerReportParam);
|
| | | if (result < 1){
|
| | | throw new AusinessException(E.UPDATE_FAIL.getCode(), "安全风险分析单元-更新上报状态失败");
|
| | | }
|
| | | return result;
|
| | | }
|
| | | }
|