country Card管理发布-对比信息接口。
This commit is contained in:
+4
@@ -84,6 +84,10 @@ public class CountryCardManageReleaseDetailEO implements Serializable {
|
|||||||
@ApiModelProperty(value = "内容")
|
@ApiModelProperty(value = "内容")
|
||||||
private java.lang.String content;
|
private java.lang.String content;
|
||||||
|
|
||||||
|
/**如果是下拉选的话,把翻译后的值放到此字段中。*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private java.lang.String contentDropDownValue;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String cut;
|
private String cut;
|
||||||
|
|
||||||
|
|||||||
+13
@@ -148,6 +148,19 @@ public class CountryCardManageReleaseDetailEOServiceImpl extends ServiceImpl<Cou
|
|||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
|
|
||||||
data.setCountryCardTempItemEOList(collect);
|
data.setCountryCardTempItemEOList(collect);
|
||||||
|
|
||||||
|
if(StringUtils.isNotEmpty(data.getContent())){
|
||||||
|
String contentDropDownValue = countryCardTempItemEOList.stream().filter(countryCardTempItemEO -> {
|
||||||
|
boolean flag = false;
|
||||||
|
if (StringUtils.equals(data.getContent(), countryCardTempItemEO.getId())) {
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
return flag;
|
||||||
|
}).map(CountryCardTempItemEO::getItemText).collect(Collectors.joining(","));
|
||||||
|
|
||||||
|
//设置下拉框的value
|
||||||
|
data.setContentDropDownValue(contentDropDownValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user