|
|
|
@ -96,6 +96,11 @@ public class Rent04Controller extends ApplicationController {
|
|
|
|
|
byte[] bytesOfFile = file.getBytes();
|
|
|
|
|
InputStream in = new ByteArrayInputStream(bytesOfFile);
|
|
|
|
|
XSSFWorkbook workbook = new XSSFWorkbook(in);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
in.close();
|
|
|
|
|
|
|
|
|
|
int rowNo = 0;
|
|
|
|
@ -224,6 +229,9 @@ public class Rent04Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
mav.addObject("data", result);
|
|
|
|
|
mav.addObject("saved", true);
|
|
|
|
|
} catch(Exception e) {
|
|
|
|
|
workbook.close();
|
|
|
|
|
}
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|