From 3ba4841f2f11d4fcadb78a4891595e9368323571 Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Tue, 09 Jun 2026 19:00:47 +0800
Subject: [PATCH] fix(task): 修复任务更新日志和工单流转处理
---
drone-ops/drone-resource/src/main/java/org/sxkj/resource/feign/AttachClient.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drone-ops/drone-resource/src/main/java/org/sxkj/resource/feign/AttachClient.java b/drone-ops/drone-resource/src/main/java/org/sxkj/resource/feign/AttachClient.java
index 99f9c5e..ad70455 100644
--- a/drone-ops/drone-resource/src/main/java/org/sxkj/resource/feign/AttachClient.java
+++ b/drone-ops/drone-resource/src/main/java/org/sxkj/resource/feign/AttachClient.java
@@ -73,9 +73,9 @@
attach.setOrderByCreateTime(true);
attach.setAreaCode(HeaderUtils.getAreaCode());
- List<Integer> integers = Arrays.asList(0, 2, 4, 5);
+ List<String> integers = Arrays.asList("0", "2", "4", "5");
attach.setResultTypes(integers);
- List<Integer> resultTypes = attach.getResultTypes();
+ List<String> resultTypes = attach.getResultTypes();
String wordOrderType = attach.getWordOrderType();
settingResultType(attach, wordOrderType, resultTypes);
@@ -104,7 +104,7 @@
* @param wordOrderType
* @param resultTypes
*/
- private static void settingResultType(AttachVO attach, String wordOrderType, List<Integer> resultTypes) {
+ private static void settingResultType(AttachVO attach, String wordOrderType, List<String> resultTypes) {
if (!StringUtils.isEmpty(wordOrderType) && !CollectionUtils.isEmpty(resultTypes)) {
if ("-1".equals(wordOrderType)) {
attach.setWordOrderType(null);
@@ -128,7 +128,7 @@
}
@Override
- public BladeFile saveAttachFile(MultipartFile file, String fileName, Integer type) throws IOException {
+ public BladeFile saveAttachFile(MultipartFile file, String fileName, List<List<String>> type) throws IOException {
BladeFile bladeFile = ossBuilder.template().putFile(pojo.getBucket(),fileName, file.getInputStream());
Long attachId = buildAttach(fileName, file.getSize(), bladeFile, type);
bladeFile.setAttachId(attachId);
@@ -148,7 +148,7 @@
return bladeFile;
}
- private Long buildAttach(String fileName, Long fileSize, BladeFile bladeFile, Integer type) {
+ private Long buildAttach(String fileName, Long fileSize, BladeFile bladeFile, List<List<String>> type) {
String fileExtension = FileUtil.getFileExtension(fileName);
Attach attach = new Attach();
attach.setDomainUrl(bladeFile.getDomain());
@@ -235,7 +235,7 @@
saveAttachFile(new MockMultipartFile( mediaFile.getName(),
mediaFile.getName(),
"application/octet-stream",
- new FileInputStream(mediaFile)), name, Attach.RESULT_TYPE_VEDIO_SHOW);
+ new FileInputStream(mediaFile)), name, null);
log.info("第{}个视频保存入库完成...", (i + 1));
}
--
Gitblit v1.9.3