|
@@ -293,11 +293,11 @@ public class ZyjnServiceImpl implements ZyjnService {
|
|
|
Map formData = ddrNew.getFormData();
|
|
|
String userId = ddrNew.getOriginator().get("userId").toString();
|
|
|
List<Map> fileList = (List<Map>) JSONArray.parse(String.valueOf(formData.get("attachmentField_lzkvrlcl")));
|
|
|
- String downloadUrl = fileList.get(0).get("downloadUrl").toString();
|
|
|
+ String ydDownloadUrl = fileList.get(0).get("downloadUrl").toString();
|
|
|
String fileName = fileList.get(0).get("name").toString();
|
|
|
//将downloadurl下载到本地
|
|
|
try {
|
|
|
- downloadFile(downloadUrl, tableFilePath + fileName);
|
|
|
+ downloadFile(ydDownloadUrl, tableFilePath + fileName);
|
|
|
System.out.println("文件下载成功!");
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
@@ -376,7 +376,7 @@ public class ZyjnServiceImpl implements ZyjnService {
|
|
|
|
|
|
//更新宜搭考勤表
|
|
|
Map attachment = new HashMap();
|
|
|
- String newDownloadUrl = downloadUrl.replace("(未审核)", "");
|
|
|
+ String newDownloadUrl = downloadUrl + fileName.replace("(未审核)", "");
|
|
|
attachment.put("downloadUrl", newDownloadUrl);
|
|
|
attachment.put("name",fileName.replace("(未审核)",""));
|
|
|
attachment.put("previewUrl", newDownloadUrl);
|