Merge remote-tracking branch 'origin/master'
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ public class BusProcessModelHis implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "流程名称")
|
||||
@TableField("PRC_NAME")
|
||||
private String prcName;
|
||||
private String fileName;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATE_TIME")
|
||||
|
||||
+6
-3
@@ -45,6 +45,9 @@ public class BusProcessModelHisServiceImpl extends ServiceImpl<BusProcessModelHi
|
||||
@Value("${file.downloadUrl}")
|
||||
private String downloadUrl;
|
||||
|
||||
@Value("${file.sourceFilePath}")
|
||||
private String sourceFilePath;
|
||||
|
||||
@Override
|
||||
public BusProcessModelHis saveEditFile(String model){
|
||||
BusProcessModelHis modelHis = new BusProcessModelHis();
|
||||
@@ -64,8 +67,8 @@ public class BusProcessModelHisServiceImpl extends ServiceImpl<BusProcessModelHi
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
String sourcePath = builderModel.toString()+model+".docx";
|
||||
|
||||
String fileName = model+".docx";
|
||||
modelHis.setFileName(fileName);
|
||||
StringBuilder builder=new StringBuilder();
|
||||
builder.append("model").append("/");
|
||||
builder.append(taskId).append("/");
|
||||
@@ -77,7 +80,7 @@ public class BusProcessModelHisServiceImpl extends ServiceImpl<BusProcessModelHi
|
||||
|
||||
String targetPath = builder.toString()+taskId+"_"+topId+"_node.docx";
|
||||
|
||||
File sourceFile = new File(filePath+sourcePath);
|
||||
File sourceFile = new File(sourceFilePath);
|
||||
File targetFile = new File(filePath+targetPath);
|
||||
FileUtils.copyFile(sourceFile, targetFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user