|
|
|
@ -97,6 +97,13 @@ public class ZhyPointRelationshipController extends BaseController |
|
|
|
int endid = Integer.valueOf(String.valueOf(point2.get(0).get("uuid"))); |
|
|
|
String endType = String.valueOf(point2.get(0).get("type1")); |
|
|
|
|
|
|
|
String author=""; |
|
|
|
String keyword=""; |
|
|
|
String agency=""; |
|
|
|
String title=""; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String RType = ""; |
|
|
|
System.out.println(point); |
|
|
|
System.out.println(point2); |
|
|
|
@ -133,6 +140,45 @@ public class ZhyPointRelationshipController extends BaseController |
|
|
|
RType = "相关"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (startType.equals("author")){ |
|
|
|
author = zhyPointRelationship.getAuthor(); |
|
|
|
} |
|
|
|
if (startType.equals("keyword")){ |
|
|
|
keyword = zhyPointRelationship.getKeyword(); |
|
|
|
} |
|
|
|
if (startType.equals("agency")){ |
|
|
|
agency = zhyPointRelationship.getAgency(); |
|
|
|
} |
|
|
|
if (startType.equals("title")){ |
|
|
|
title = zhyPointRelationship.getTitle(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (endType.equals("author")){ |
|
|
|
author = zhyPointRelationship.getAuthor(); |
|
|
|
} |
|
|
|
if (endType.equals("keyword")){ |
|
|
|
keyword = zhyPointRelationship.getKeyword(); |
|
|
|
} |
|
|
|
if (endType.equals("agency")){ |
|
|
|
agency = zhyPointRelationship.getAgency(); |
|
|
|
} |
|
|
|
if (endType.equals("title")){ |
|
|
|
title = zhyPointRelationship.getTitle(); |
|
|
|
} |
|
|
|
List<Map> flag = zhyPointMapper.selectPointRelationshipByName(author,keyword,agency,title); |
|
|
|
if (flag.size()!=0){ |
|
|
|
return AjaxResult.error(500,"数据重复"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map map = new HashMap(); |
|
|
|
map.put("relType",RType); |
|
|
|
int uuid = pointService.createReletionship(startid,endid,RType,map); |
|
|
|
|