| | |
| | | package com.ruoyi.doublePrevention.service.impl;
|
| | |
|
| | | import com.baomidou.mybatisplus.core.metadata.IPage;
|
| | | import com.github.pagehelper.Page;
|
| | | import com.github.pagehelper.PageHelper;
|
| | | import com.ruoyi.common.utils.StringUtils;
|
| | |
| | |
|
| | | return 0;
|
| | | }
|
| | |
|
| | | /**
|
| | | * @description 获取所有的风险分析单元的编码和姓名
|
| | | */
|
| | | @Override
|
| | | public List<PreventRiskUnitCodeAndNameListQueryRespDTO> listRiskUnitCodeAndName() {
|
| | | List<PreventRiskList> riskLists = preventRiskListService.listRiskUnitCodeAndName();
|
| | | List<PreventRiskUnitCodeAndNameListQueryRespDTO> listQueryRespDTOs= riskLists.stream().map((riskList)->{
|
| | | PreventRiskUnitCodeAndNameListQueryRespDTO listQueryRespDTO = new PreventRiskUnitCodeAndNameListQueryRespDTO();
|
| | | BeanUtils.copyProperties(riskList,listQueryRespDTO);
|
| | | return listQueryRespDTO;
|
| | | }).collect(Collectors.toList());
|
| | | return listQueryRespDTOs;
|
| | | }
|
| | | } |