|
@@ -299,6 +299,7 @@ public class PersonService {
|
|
|
XSSFPicture pic = (XSSFPicture) shape;
|
|
|
//获取图片格式
|
|
|
String ext = pic.getPictureData().suggestFileExtension();
|
|
|
+ logger.info("ext == " + ext);
|
|
|
if(!"jpg".equalsIgnoreCase(ext)){
|
|
|
throw new BDException("Excel中只能放jpg格式图像");
|
|
|
}
|