| | |
| | | @PreAuthorize("hasAuthority('asrs:mat:list')") |
| | | @PostMapping("/mat/export") |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | ExcelUtil.build(ExcelUtil.create(matService.list(), Mat.class), response); |
| | | List<Mat> list = matService.parseMat(matService.list()); |
| | | List<MatField> matFields = matFieldService.getMatFields(); |
| | | ExcelUtil.build(ExcelUtil.create(list, Mat.class, matFields), response); |
| | | } |
| | | |
| | | private void setMatField(HashMap<String, Object> param, Mat mat) { |