Commit a38cec25 authored by alex yao's avatar alex yao

fix

parent 38487275
...@@ -216,7 +216,17 @@ public class KnowledgeServiceImpl implements KnowledgeService { ...@@ -216,7 +216,17 @@ public class KnowledgeServiceImpl implements KnowledgeService {
if (CollectionUtils.isNotEmpty(knowledgeQueryItems)) { if (CollectionUtils.isNotEmpty(knowledgeQueryItems)) {
result = knowledgeQueryItems.stream().map(item -> { result = knowledgeQueryItems.stream().map(item -> {
BizKnowledgeDocumentEntity entity = new BizKnowledgeDocumentEntity(); BizKnowledgeDocumentEntity entity = new BizKnowledgeDocumentEntity();
BeanUtil.copyProperties(item, entity); entity.setKdId(item.getKdId());
entity.setOwner(item.getOwner());
entity.setKnowledgeType(item.getKnowledgeType());
entity.setDocumentName(item.getDocumentName());
entity.setDocumentUrl(item.getDocumentUrl());
entity.setCharCount(item.getCharCount());
entity.setUploadTime(item.getUploadTime());
entity.setIsEnable(item.getIsEnable());
entity.setKnowledgeId(item.getKnowledgeId());
entity.setTrainStatus(item.getTrainStatus());
entity.setDocumentSize(item.getDocumentSize());
if (StringUtils.isNotBlank(item.getSegmentationConfig())) { if (StringUtils.isNotBlank(item.getSegmentationConfig())) {
SegmentationConfigRequest segmentationConfigRequest = JsonUtils.deSerialize(item.getSegmentationConfig(), SegmentationConfigRequest.class); SegmentationConfigRequest segmentationConfigRequest = JsonUtils.deSerialize(item.getSegmentationConfig(), SegmentationConfigRequest.class);
entity.setSegmentationConfig(segmentationConfigRequest); entity.setSegmentationConfig(segmentationConfigRequest);
......
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