| | |
| | | */
|
| | | public String encodingFilename(String filename)
|
| | | {
|
| | | filename = UUID.randomUUID().toString() + "_" + filename + ".xlsx";
|
| | | filename = UUID.randomUUID() + "_" + filename + ".xlsx";
|
| | | return filename;
|
| | | }
|
| | |
|
| | |
| | | Excel[] excels = attrs.value();
|
| | | for (Excel attr : excels)
|
| | | {
|
| | | if (attr != null && (attr.type() == Type.ALL || attr.type() == type))
|
| | | if (!ArrayUtils.contains(this.excludeFields, field.getName() + "." + attr.targetAttr())
|
| | | && (attr != null && (attr.type() == Type.ALL || attr.type() == type)))
|
| | | {
|
| | | field.setAccessible(true);
|
| | | fields.add(new Object[] { field, attr });
|
| | |
| | | HSSFPicture pic = (HSSFPicture) shape;
|
| | | int pictureIndex = pic.getPictureIndex() - 1;
|
| | | HSSFPictureData picData = pictures.get(pictureIndex);
|
| | | String picIndex = String.valueOf(anchor.getRow1()) + "_" + String.valueOf(anchor.getCol1());
|
| | | String picIndex = anchor.getRow1() + "_" + anchor.getCol1();
|
| | | sheetIndexPicMap.put(picIndex, picData);
|
| | | }
|
| | | }
|