|
@@ -386,7 +386,7 @@ public class ConsultancyReimbursementInfoService {
|
|
|
//文件类型处理
|
|
|
List<String> strings = Arrays.asList(amountInfo.getName().split("\\."));
|
|
|
if (org.flowable.editor.language.json.converter.util.CollectionUtils.isNotEmpty(strings)) {
|
|
|
- reimbursementAmountInfo.setFileType(strings.get(1));
|
|
|
+ reimbursementAmountInfo.setFileType(strings.get(strings.size() - 1));
|
|
|
}
|
|
|
reimbursementAmountInfo.setAttachmentName(amountInfo.getName());
|
|
|
reimbursementAmountInfo.setAttachmentFlag("invoiceReimbursement");
|
|
@@ -439,7 +439,7 @@ public class ConsultancyReimbursementInfoService {
|
|
|
//文件类型处理
|
|
|
List<String> strings = Arrays.asList(dto.getName().split("\\."));
|
|
|
if (org.flowable.editor.language.json.converter.util.CollectionUtils.isNotEmpty(strings)) {
|
|
|
- i.setType(strings.get(1));
|
|
|
+ i.setType(strings.get(strings.size() - 1));
|
|
|
}
|
|
|
i.setAttachmentId(id);
|
|
|
i.setAttachmentName(dto.getName());
|
|
@@ -615,7 +615,7 @@ public class ConsultancyReimbursementInfoService {
|
|
|
//文件类型处理
|
|
|
List<String> strings = Arrays.asList(amountInfo.getName().split("\\."));
|
|
|
if (org.flowable.editor.language.json.converter.util.CollectionUtils.isNotEmpty(strings)) {
|
|
|
- reimbursementAmountInfo.setFileType(strings.get(1));
|
|
|
+ reimbursementAmountInfo.setFileType(strings.get(strings.size() - 1));
|
|
|
}
|
|
|
reimbursementAmountInfo.setAttachmentName(amountInfo.getName());
|
|
|
reimbursementAmountInfo.setAttachmentFlag("invoiceReimbursement");
|
|
@@ -702,7 +702,7 @@ public class ConsultancyReimbursementInfoService {
|
|
|
//文件类型处理
|
|
|
List<String> strings = Arrays.asList(dto.getName().split("\\."));
|
|
|
if (org.flowable.editor.language.json.converter.util.CollectionUtils.isNotEmpty(strings)) {
|
|
|
- i.setType(strings.get(1));
|
|
|
+ i.setType(strings.get(strings.size() - 1));
|
|
|
}
|
|
|
i.setAttachmentId(id);
|
|
|
i.setAttachmentName(dto.getName());
|
|
@@ -1330,7 +1330,7 @@ public class ConsultancyReimbursementInfoService {
|
|
|
//文件类型处理
|
|
|
List<String> strings = Arrays.asList(amountInfo.getName().split("\\."));
|
|
|
if (org.flowable.editor.language.json.converter.util.CollectionUtils.isNotEmpty(strings)) {
|
|
|
- reimbursementAmountInfo.setFileType(strings.get(1));
|
|
|
+ reimbursementAmountInfo.setFileType(strings.get(strings.size() - 1));
|
|
|
}
|
|
|
reimbursementAmountInfo.setAttachmentName(amountInfo.getName());
|
|
|
reimbursementAmountInfo.setAttachmentFlag("invoiceReimbursement");
|