liyg hai 1 ano
pai
achega
2d3b07d8a8

+ 2 - 1
src/main/java/com/steerinfo/dil/controller/OTMSController.java

@@ -136,6 +136,7 @@ public class OTMSController {
         Map<String,Object> mapValue=new HashMap<>();
         String url="";
         Boolean isUpload = false;
+        int workId = 1;
         //四种图片
         for(int i = 1;i < 5; i++){
             String photo="";
@@ -144,7 +145,7 @@ public class OTMSController {
                 MultipartFile file = request.getFile("photo"+i+"_"+j);
                 if(file!=null){
                     isUpload = true;
-                    String  fileName = imageFileUtils.updateFile(file,j+i*10)+';';
+                    String  fileName = imageFileUtils.updateFile(file,workId++)+';';
                     photo += fileName ;
                 }
             }