|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.docus.server.message.busservice.impl;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.docus.core.util.DateUtil;
|
|
|
|
|
import com.docus.core.util.Func;
|
|
|
|
@ -213,11 +214,10 @@ public class ZxjhBusinessServiceImpl implements ZxjhBusinessService {
|
|
|
|
|
// 定义参数
|
|
|
|
|
List paramList=new ArrayList();
|
|
|
|
|
for (JSONObject param:params){
|
|
|
|
|
QName paramName = new QName(namespace, param.getString("name"));
|
|
|
|
|
paramList.add(paramName);
|
|
|
|
|
paramList.add(param.getString("value"));
|
|
|
|
|
}
|
|
|
|
|
// 设置参数值
|
|
|
|
|
log.info("查询入参{}", JSON.toJSONString(paramList));
|
|
|
|
|
Object[] paramArray = paramList.toArray();
|
|
|
|
|
Object[] objects = client.invoke(name, paramArray);
|
|
|
|
|
result = objects[0].toString();
|
|
|
|
@ -296,6 +296,10 @@ public class ZxjhBusinessServiceImpl implements ZxjhBusinessService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void downFile(TScanAssort tScanAssort,String sourcePath,String downPath) throws Exception{
|
|
|
|
|
File file = new File(downPath);
|
|
|
|
|
if(!file.exists()){
|
|
|
|
|
file.mkdirs();
|
|
|
|
|
}
|
|
|
|
|
//文件地址形似ftp://AdminPLAT:Plat.2023@192.168.12.90:21/PaperlessData/2024/03/05/Emr/b1162dd9-c47a-4353-8572-37667f6114bc.pdf
|
|
|
|
|
//获取文件后最
|
|
|
|
|
String end = sourcePath.substring(sourcePath.lastIndexOf("."));
|
|
|
|
|