Explorar o código

【CHG】更改导出接口

ZhaoMn %!s(int64=3) %!d(string=hai) anos
pai
achega
3e0e7812d9

+ 1 - 1
railway-admin/src/main/java/com/railway/web/controller/business/safetool/SecQcodeController.java

@@ -104,7 +104,7 @@ public class SecQcodeController extends BaseController {
     }
     List<BaseSafetyTool> list = baseSafetyToolService.getList(safetyTool);
     for (BaseSafetyTool tool : list){
-      File file = new File(tmpPath + tool.getToolCode());
+      File file = new File(tmpPath + tool.getToolCode() + ".jpg");
       byte[] byteArray = HttpUtils.sendGetStream(tool.getQcodeUrl());
       try (FileOutputStream os = new FileOutputStream(file, true)){
         os.write(byteArray, 0, byteArray.length);