| | |
| | | |
| | | @PreAuthorize("@ss.hasPermission('data:point:query')") |
| | | @GetMapping("pointNo") |
| | | public CommonResult<List<DaPointDTO>> getpoint(@RequestParam Map<String, Object> params){ |
| | | public CommonResult<List<DaPointDTO>> getPoint(@RequestParam Map<String, Object> params) { |
| | | List<DaPointDTO> list = daPointService.list(params); |
| | | |
| | | return new CommonResult<List<DaPointDTO>>().setData(list); |
| | |
| | | public void exportPointList(@Validated DaPointPageReqVO exportReqVO, |
| | | HttpServletResponse response) throws IOException { |
| | | exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |
| | | List<DaPointEntity> list = daPointService.queryExcelList(exportReqVO).getList(); |
| | | List<DaPointExcelVO> daPointExcelVOlist = ConvertUtils.sourceToTarget(list,DaPointExcelVO.class); |
| | | ExcelUtils.write(response, "测点列表.xls", "数据", DaPointExcelVO.class, daPointExcelVOlist); |
| | | List<DaPointExcelVO> dataList = new ArrayList<>(); |
| | | List<DaPointDTO> measurePointList = daPointService.getMeasurePoint(exportReqVO); |
| | | dataList.addAll(ConvertUtils.sourceToTarget(measurePointList, DaPointExcelVO.class)); |
| | | List<DaPointDTO> mathPointList = daPointService.getMathPoint(exportReqVO); |
| | | dataList.addAll(ConvertUtils.sourceToTarget(mathPointList, DaPointExcelVO.class)); |
| | | List<DaPointDTO> constantPointList = daPointService.getConstantPoint(exportReqVO); |
| | | dataList.addAll(ConvertUtils.sourceToTarget(constantPointList, DaPointExcelVO.class)); |
| | | ExcelUtils.write(response, "测点列表.xls", "测点列表", DaPointExcelVO.class, dataList); |
| | | } |
| | | |
| | | @GetMapping("/exportValue") |