提交 8ed71564 authored 作者: Whispa's avatar Whispa

commit

上级 31441b76
...@@ -80,6 +80,7 @@ public class ImageSearchController extends Controller { ...@@ -80,6 +80,7 @@ public class ImageSearchController extends Controller {
String[] strings = itemImg != null ? itemImg.split(";") : new String[]{}; String[] strings = itemImg != null ? itemImg.split(";") : new String[]{};
String img = strings.length > 0 ? strings[0] : itemImg; String img = strings.length > 0 ? strings[0] : itemImg;
if( img != null) { if( img != null) {
System.out.println("Searching");
List<ItemLabel> itemLabels = getItemLabels(img); List<ItemLabel> itemLabels = getItemLabels(img);
itemLabels.forEach(v->v.setItem(stationItem)); itemLabels.forEach(v->v.setItem(stationItem));
stationItem.setLabelList(itemLabels); stationItem.setLabelList(itemLabels);
......
...@@ -133,7 +133,7 @@ public class TbCfStationItem { ...@@ -133,7 +133,7 @@ public class TbCfStationItem {
@JsonIgnore @JsonIgnore
@OneToMany(mappedBy = "item") @OneToMany(mappedBy = "item", cascade = CascadeType.ALL)
private List<ItemLabel> labelList = new ArrayList<>(); private List<ItemLabel> labelList = new ArrayList<>();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论