提交 17e6b8f4 authored 作者: lizhuo's avatar lizhuo

--no commit message

上级 6bb1b190
......@@ -10,6 +10,7 @@ import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
......@@ -27,6 +28,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zrqx.core.constant.works.WorksRequestPath;
import com.zrqx.core.enums.book.BookDownEnum;
import com.zrqx.core.enums.works.apply.StatusEnum;
import com.zrqx.core.exception.ShowException;
import com.zrqx.core.form.works.bg.apply.ApplyResourceForm;
......@@ -174,6 +176,26 @@ public class ApplyController {
QueryResponse queryResponse = client.query(sq);
SolrDocumentList results = queryResponse.getResults();
String path = (String) results.get(0).get("path");
if (apply.getFile().contains(BookDownEnum.RESOURCE.getCode())) {
String pdfFile = (String) results.get(0).get("pdfFile");
String videoFile = (String) results.get(0).get("videoFile");
String audioFile = (String) results.get(0).get("audioFile");
if (StringUtils.isNotBlank(pdfFile)) {
sdv.getResourceList().add(pdfFile);
}
if (StringUtils.isNotBlank(videoFile)) {
sdv.getResourceList().add(videoFile);
}
if (StringUtils.isNotBlank(audioFile)) {
sdv.getResourceList().add(audioFile);
}
}
if (apply.getFile().contains(BookDownEnum.ATTACHMENT.getCode())) {
Set attachmentList = (Set) results.get(0).get("attachmentList");
sdv.setAttachmentList(attachmentList);
}
sdv.setPath(path);
} catch (Exception e) {
e.printStackTrace();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论