소스 검색

【CHG】更改导出接口

ZhaoMn 3 년 전
부모
커밋
3e0e7812d9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      railway-admin/src/main/java/com/railway/web/controller/business/safetool/SecQcodeController.java

+ 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);