Commit a13be4fc by zhangkb

修改标签元数据导入接口

parent 86e05bce
...@@ -5,7 +5,6 @@ import java.util.Map; ...@@ -5,7 +5,6 @@ import java.util.Map;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(name = "MetadataRepo") @FeignClient(name = "MetadataRepo")
...@@ -23,6 +22,6 @@ public interface RepoServiceClient { ...@@ -23,6 +22,6 @@ public interface RepoServiceClient {
@RequestParam String namePath); @RequestParam String namePath);
@PostMapping(value = "/rest/tag/addTag") @PostMapping(value = "/rest/tag/addTag")
public void addTag(@RequestParam String dimensionType,@RequestParam String idPath, public int addTag(@RequestParam List<String> metadataIds, @RequestParam String idPath,
@RequestBody List<String> metadataIds,@RequestParam String tagType); @RequestParam String tagType,@RequestParam String dimensionType);
} }
...@@ -255,7 +255,7 @@ public class TagFileService { ...@@ -255,7 +255,7 @@ public class TagFileService {
} }
if(!successIds.isEmpty()) { if(!successIds.isEmpty()) {
//调用repo接口批量打元数据标签 //调用repo接口批量打元数据标签
repoService.addTag(dimensionType, idPath, successIds, tagType); repoService.addTag(successIds, idPath, tagType, dimensionType);
} }
excelImportResult.getFailList().forEach(tag -> { excelImportResult.getFailList().forEach(tag -> {
importLog.appendErrorMsg(String.format("第%s行, %s", tag.getRowNum() + params.getTitleRows() + params.getReadRows(), tag.getErrorMsg())); importLog.appendErrorMsg(String.format("第%s行, %s", tag.getRowNum() + params.getTitleRows() + params.getReadRows(), tag.getErrorMsg()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment