|
|
@@ -66,7 +66,8 @@ public class EsignSignServiceImpl implements IEsignSignService {
|
|
|
private String tmsUrl;
|
|
|
@Value(value = "${spring.tms.suishenbang}")
|
|
|
private String suishenbang;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private IEsignSignService signService;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
@@ -251,7 +252,7 @@ public class EsignSignServiceImpl implements IEsignSignService {
|
|
|
|
|
|
@Override
|
|
|
@Async
|
|
|
- public void saveFile(String flowId, OrderFile orderFlag) {
|
|
|
+ public void saveFile(String flowId, OrderFile orderFlag) throws IOException {
|
|
|
// System.out.println("executeAysncTask1 method: 执行异步保存{} -------"+ i);
|
|
|
String fileUrl = processDocumentDownload(flowId);
|
|
|
String uId=UUID.randomUUID().toString();
|
|
|
@@ -269,6 +270,10 @@ public class EsignSignServiceImpl implements IEsignSignService {
|
|
|
orderFile.setFileUrl(Constants.RESOURCE_PREFIX+"/pdf/"+DateUtils.datePath()+"/"+orderFlag.getOrderId()+uId + "_签收订单.pdf");
|
|
|
|
|
|
}
|
|
|
+ //1 司机授权
|
|
|
+ if(orderFlag.getTypes()==1){
|
|
|
+ signService.tmsCertificate(orderFlag.getDeliveryNumber(),orderFlag.getFileUrl());
|
|
|
+ }
|
|
|
// orderFile.setFileUrl(refile);
|
|
|
orderFileService.updateOrderFileByFlowId(orderFile);
|
|
|
}
|