Commit f3b6a58e by 石头

整合词条页面

1 parent 5e468d16
......@@ -68,6 +68,21 @@
<a class="list-group-item" >万象森罗</a>
</div>
</c:when>
<c:when test="${vo.word eq '象鼻山'}">
<div class="list-group">
<span class="list-group-item list-group-item-header">${vo.word}</span>
<a class="list-group-item" href="/word/info/1"></a>
<a class="list-group-item" >象鼻虫</a>
<a class="list-group-item" >象草</a>
<a class="list-group-item" >象龟</a>
<a class="list-group-item" >象山</a>
<a class="list-group-item" >象山港</a>
<a class="list-group-item" >象山先生集</a>
<a class="list-group-item" >象山学派</a>
<a class="list-group-item" >象舞</a>
<a class="list-group-item" >象戏</a>
</div>
</c:when>
<c:when test="${vo.word eq '中国'}">
<div class="list-group">
<span class="list-group-item list-group-item-header">${vo.word}</span>
......
......@@ -663,6 +663,7 @@
<c:if test="${vo.word eq '心脏'}">
<script>
$(function() {
// 图谱
var nodeDatas = [{
atlasNodes: [{
......
......@@ -79,7 +79,7 @@ public class WordDTO {
relationOneWayQuery.setWordId(word.getId());
List<RelationOneWayDomain> relateList = relationOneWayService.getList(relationOneWayQuery);
wordDTO.setHasRelated(CollectionUtils.isNotEmpty(relateList));
if (ArrayUtils.contains(new String[]{"象", "中国", "中华人民共和国", "太阳系"}, word.getWord())) {
if (ArrayUtils.contains(new String[]{"象","象鼻山","中国", "中华人民共和国", "太阳系"}, word.getWord())) {
wordDTO.setHasRelated(true);
}
return wordDTO;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!