| | |
| | | import com.dy.pmsGlobal.aop.Log; |
| | | import com.dy.pmsGlobal.pojoPr.PrAssemblyPlan; |
| | | import com.dy.pmsGlobal.pojoPr.PrDevice; |
| | | import com.dy.pmsGlobal.util.ExportExcelUtil; |
| | | import com.dy.pmsGlobal.util.QrCodeUtil; |
| | | import com.google.zxing.WriterException; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | |
| | | list.add(vo); |
| | | }); |
| | | log.info("导出设备号及二维码耗时:"+(new Date().getTime()-start.getTime())+"ms"); |
| | | QrCodeUtil.downloadExcel(response, fileName,sheetName,list); |
| | | ExportExcelUtil.downloadExcel(response, fileName,sheetName,list); |
| | | log.info("导出设备号及二维码耗时:"+(new Date().getTime()-start.getTime())+"ms"); |
| | | } |
| | | @GetMapping(path="exportDeviceNo") |
| | |
| | | PrAssemblyPlan plan = sv.selectByBatchId(batchId); |
| | | String fileNameStr = plan.name +"-"+ fileName; |
| | | log.info("导出设备号耗时:"+(new Date().getTime()-start.getTime())+"ms"); |
| | | QrCodeUtil.downloadExcel(response, fileNameStr,sheetName,list); |
| | | ExportExcelUtil.downloadExcel(response, fileNameStr,sheetName,list); |
| | | log.info("导出设备号耗时:"+(new Date().getTime()-start.getTime())+"ms"); |
| | | } |
| | | } |