| | |
| | | @ApiOperation("导入井") |
| | | public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { |
| | | ExcelUtil<ArdAlarmpointsWell> util = new ExcelUtil<ArdAlarmpointsWell>(ArdAlarmpointsWell.class); |
| | | List<ArdAlarmpointsWell> userList = util.importExcel(file.getInputStream()); |
| | | List<ArdAlarmpointsWell> wellList = util.importExcel(file.getInputStream()); |
| | | String operName = getUsername(); |
| | | String message = ardAlarmpointsWellService.importUser(userList, updateSupport, operName); |
| | | String message = ardAlarmpointsWellService.importWell(wellList, updateSupport, operName); |
| | | return success(message); |
| | | } |
| | | |