|  | @@ -54,6 +54,7 @@ import java.lang.reflect.Type;
 | 
												
													
														
															|  |  import java.util.*;
 |  |  import java.util.*;
 | 
												
													
														
															|  |  import java.util.stream.Collectors;
 |  |  import java.util.stream.Collectors;
 | 
												
													
														
															|  |  //import org.springframework.mock.web.MockMultipartFile;
 |  |  //import org.springframework.mock.web.MockMultipartFile;
 | 
												
													
														
															|  | 
 |  | +import org.springframework.mock.web.MockMultipartFile;
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  /**
 |  |  /**
 | 
												
													
														
															|  |   * 项目签章回调接口Controller
 |  |   * 项目签章回调接口Controller
 | 
												
											
												
													
														
															|  | @@ -289,18 +290,18 @@ public class CwProjectReportSignatureCallBackController {
 | 
												
													
														
															|  |                      String filepath = "";
 |  |                      String filepath = "";
 | 
												
													
														
															|  |                      //取得上传文件
 |  |                      //取得上传文件
 | 
												
													
														
															|  |                      //将文件上传到oss云盘中
 |  |                      //将文件上传到oss云盘中
 | 
												
													
														
															|  | -//                    MultipartFile cMultiFile = new MockMultipartFile("file", f.getName(), null, new FileInputStream(f));
 |  | 
 | 
												
													
														
															|  | -//                    if (!cMultiFile.isEmpty()) {
 |  | 
 | 
												
													
														
															|  | -//                        // 文件保存路径
 |  | 
 | 
												
													
														
															|  | -//                        String realPath =DIRECTORY.replace("/","")+"/cw_project_report_file"+ossClientService.datePath()+"/"+ System.currentTimeMillis();
 |  | 
 | 
												
													
														
															|  | -//                        //文件原名称
 |  | 
 | 
												
													
														
															|  | -//                        String newName = cMultiFile.getOriginalFilename();
 |  | 
 | 
												
													
														
															|  | -//                        if(StringUtils.isNotBlank(newName)){
 |  | 
 | 
												
													
														
															|  | -//                            newName = newName.substring(13, newName.length());
 |  | 
 | 
												
													
														
															|  | -//                            ossClientService.uploadFile2OSS(cMultiFile.getInputStream(),realPath,newName);
 |  | 
 | 
												
													
														
															|  | -//                            filepath = "/" + realPath + newName;
 |  | 
 | 
												
													
														
															|  | -//                        }
 |  | 
 | 
												
													
														
															|  | -//                    }
 |  | 
 | 
												
													
														
															|  | 
 |  | +                    MultipartFile cMultiFile = new MockMultipartFile("file", f.getName(), null, new FileInputStream(f));
 | 
												
													
														
															|  | 
 |  | +                    if (!cMultiFile.isEmpty()) {
 | 
												
													
														
															|  | 
 |  | +                        // 文件保存路径
 | 
												
													
														
															|  | 
 |  | +                        String realPath =DIRECTORY.replace("/","")+"/cw_project_report_file"+ossClientService.datePath()+"/"+ System.currentTimeMillis();
 | 
												
													
														
															|  | 
 |  | +                        //文件原名称
 | 
												
													
														
															|  | 
 |  | +                        String newName = cMultiFile.getOriginalFilename();
 | 
												
													
														
															|  | 
 |  | +                        if(StringUtils.isNotBlank(newName)){
 | 
												
													
														
															|  | 
 |  | +                            newName = newName.substring(13, newName.length());
 | 
												
													
														
															|  | 
 |  | +                            ossClientService.uploadFile2OSS(cMultiFile.getInputStream(),realPath,newName);
 | 
												
													
														
															|  | 
 |  | +                            filepath = "/" + realPath + newName;
 | 
												
													
														
															|  | 
 |  | +                        }
 | 
												
													
														
															|  | 
 |  | +                    }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |                      System.out.println(f.getName());
 |  |                      System.out.println(f.getName());
 | 
												
													
														
															|  |                      //截取文件后缀名
 |  |                      //截取文件后缀名
 | 
												
											
												
													
														
															|  | @@ -332,8 +333,8 @@ public class CwProjectReportSignatureCallBackController {
 | 
												
													
														
															|  |                          CwProjectReportFile cwProjectReportFile = new CwProjectReportFile();
 |  |                          CwProjectReportFile cwProjectReportFile = new CwProjectReportFile();
 | 
												
													
														
															|  |                          cwProjectReportFile.setDelFlag(0);
 |  |                          cwProjectReportFile.setDelFlag(0);
 | 
												
													
														
															|  |                          cwProjectReportFile.setId(UUID.randomUUID().toString().replace("-", ""));
 |  |                          cwProjectReportFile.setId(UUID.randomUUID().toString().replace("-", ""));
 | 
												
													
														
															|  | -                        cwProjectReportFile.setCreateById(UserUtils.getByLoginName("admin",null).getId());
 |  | 
 | 
												
													
														
															|  | -                        cwProjectReportFile.setUpdateById(UserUtils.getByLoginName("admin",null).getId());
 |  | 
 | 
												
													
														
															|  | 
 |  | +                        cwProjectReportFile.setCreateById(projectReportData.getCreateById());
 | 
												
													
														
															|  | 
 |  | +                        cwProjectReportFile.setUpdateById(projectReportData.getCreateById());
 | 
												
													
														
															|  |                          cwProjectReportFile.setCreateTime(new Date());
 |  |                          cwProjectReportFile.setCreateTime(new Date());
 | 
												
													
														
															|  |                          cwProjectReportFile.setUpdateTime(new Date());
 |  |                          cwProjectReportFile.setUpdateTime(new Date());
 | 
												
													
														
															|  |                          cwProjectReportFile.setReportFileId(id);
 |  |                          cwProjectReportFile.setReportFileId(id);
 |