|
@@ -259,6 +259,14 @@ public class EsignController extends ApiBaseController {
|
|
|
orderFile.setFlowId(flowId);
|
|
|
orderFileService.insertOrderFile(orderFile);
|
|
|
logger.info("保存授权签署附件");
|
|
|
+ //协议书url
|
|
|
+ OrderFile orderFlag = orderFileService.selectOrderFileByFlowId(flowId);
|
|
|
+ signService.saveFileFalse(flowId, orderFlag);
|
|
|
+ OrderFile File = new OrderFile();
|
|
|
+ File.setFlowId(orderFlag.getFlowId());
|
|
|
+ File.setCode("200");
|
|
|
+ File.setMessage("success");
|
|
|
+ orderFileService.updateOrderFileByFlowId(File);
|
|
|
File f = new File(fileModal.getFilePath());
|
|
|
f.delete();
|
|
|
//}
|
|
@@ -390,7 +398,13 @@ public class EsignController extends ApiBaseController {
|
|
|
OrderFile orderFlag = orderFileService.selectOrderFileByFlowId(flowId);
|
|
|
|
|
|
if ("2".equals(signResult)) {
|
|
|
+ if(businessScence!=null && ("司机授权").equals(businessScence)){
|
|
|
|
|
|
+ signService.saveFileFalse(flowId, orderFlag);
|
|
|
+ }else {
|
|
|
+ /*异步保存文件*/
|
|
|
+ signService.saveFile(flowId, orderFlag);
|
|
|
+ }
|
|
|
/*异步调用回调接口*/
|
|
|
if(businessScence!=null &&!("司机授权").equals(businessScence)){
|
|
|
signService.callbackNotice(orderFlag);
|
|
@@ -401,9 +415,6 @@ public class EsignController extends ApiBaseController {
|
|
|
orderFile.setMessage("success");
|
|
|
orderFileService.updateOrderFileByFlowId(orderFile);
|
|
|
}
|
|
|
- /*异步保存文件*/
|
|
|
- signService.saveFile(flowId,orderFlag);
|
|
|
-
|
|
|
|
|
|
// String fileUrl = signService.processDocumentDownload(flowId);
|
|
|
/*下载保存签署后的文件,返回文件存储地址*/
|