| | |
| | | import com.dy.common.webUtil.ResultCodeMsg; |
| | | import com.dy.pipIrrGlobal.pojoUg.UgRtuTask; |
| | | import com.dy.pipIrrGlobal.voUg.VoUgResult; |
| | | import com.dy.pipIrrGlobal.voUg.VoUgRtuResult; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.media.Content; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | |
| | | * @param response |
| | | */ |
| | | @RequestMapping(value = "/exportAll", method = RequestMethod.GET) |
| | | @SsoAop() |
| | | public void exportAll(HttpServletResponse response, QueryUgResultVo vo) throws Exception { |
| | | if(vo.state != null && vo.state == 1){ |
| | | //查询升级成功的 |
| | |
| | | setExcelRespProp(response, "升级结果列表"); |
| | | List<VoUgResult> rsList = this.sv.selectAll(vo); |
| | | EasyExcel.write(response.getOutputStream()) |
| | | .head(VoUgRtuResult.class) |
| | | .head(VoUgResult.class) |
| | | .excelType(ExcelTypeEnum.XLSX) |
| | | .sheet("升级结果列表") |
| | | .doWrite(rsList); |