|
|
@@ -180,11 +180,16 @@ public class AllianceCityWebsiteSchedul implements Job {
|
|
|
String fileUrl = record.getUrl();
|
|
|
String file = "";
|
|
|
if(!ObjectUtils.isEmpty(fileUrl)){
|
|
|
- if(fileUrl.endsWith(";")){
|
|
|
- fileUrl = fileUrl.substring(0,fileUrl.length()-1);
|
|
|
- }
|
|
|
file = "<br>附件:<br>";
|
|
|
- file += "<a target='_blank' style='color: blue' href='"+ fileUrl +"' rel='noreferrer noopener nofollow' >附件</a><br/>";
|
|
|
+ String[] finalFiles = fileUrl.split(";");
|
|
|
+ for (int i = 0; i < finalFiles.length; i++) {
|
|
|
+ String finalFile = finalFiles[i];
|
|
|
+ if(finalFile.endsWith(";")){
|
|
|
+ finalFile = finalFile.substring(0,finalFile.length()-1);
|
|
|
+ }
|
|
|
+ Integer index = 1+i;
|
|
|
+ file += "<a target='_blank' style='color: blue' href='"+ finalFile +"' rel='noreferrer noopener nofollow' >附件"+index+"</a><br/>";
|
|
|
+ }
|
|
|
}
|
|
|
finalNoticeContent = finalNoticeContent + file;
|
|
|
}
|