//图片保存路径前缀
private static final String BASE_PATH = "D:/zingImage/";
//压缩包保存路径
private static final String ZIP_PATH = "D:/";
private static final String ZIP_NAME = "zingImage.zip";
//图片保存的格式
private static final String Suffix_PATH = ".png";
//二维码请求路径
private static final String Url_Path = "http://www.baidu.com";
/**
* @author 王安其
* @desrciption 压缩文件夹并下载
* @Date 2019/6/21 14:55
* @Param [params]
* @retrun
*/
@PostMapping(value="/downloadCompressFile")
public void downloadCompressFile(HttpServletResponse response) {
//生成所有设备的二维码并保存
saveInspectionImage();
createCardImgZip(BASE_PATH,ZIP_NAME);
//下载压缩包
downLoadZip(ZIP_NAME,ZIP_PATH+ZIP_NAME,response);
}
/**
* @author 王安其
* @desrciption 保存二维码图片到指定位置
* @Date 2019/6/21 14:55
* @Param [params]
*