Commit fd83c649 by zhangkb

修改标签关系接口

parent 4f134f8c
......@@ -24,10 +24,10 @@ public class TagRelService {
}
public List<TagRelation> getSource(String tagId){
return tagRelRepo.findBySourceId(tagId);
return tagRelRepo.findByTargetId(tagId);
}
public List<TagRelation> getTarget(String tagId){
return tagRelRepo.findByTargetId(tagId);
return tagRelRepo.findBySourceId(tagId);
}
}
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