|
@@ -222,6 +222,28 @@ public class ByteDanceUserOrientationTemplate {
|
|
@ApiModelProperty(value = "是否开启智能放量")
|
|
@ApiModelProperty(value = "是否开启智能放量")
|
|
private String autoExtendEnabled;
|
|
private String autoExtendEnabled;
|
|
|
|
|
|
|
|
+ @Excel(name = "区域类型", width = 15)
|
|
|
|
+ @ApiModelProperty(value = "区域类型")
|
|
|
|
+ private String areaType;
|
|
|
|
+
|
|
|
|
+ @Excel(name = "兴趣类型", width = 15)
|
|
|
|
+ @ApiModelProperty(value = "兴趣类型")
|
|
|
|
+ private String intrestType;
|
|
|
|
+
|
|
|
|
+ @Excel(name = "文章分类类型", width = 15)
|
|
|
|
+ @ApiModelProperty(value = "文章分类类型")
|
|
|
|
+ private String articleCategoryType;
|
|
|
|
+
|
|
|
|
+ @Excel(name = "手机品牌", width = 15)
|
|
|
|
+ @ApiModelProperty(value = "手机品牌")
|
|
|
|
+ private String mobileBrand;
|
|
|
|
+
|
|
|
|
+ private String cityStr;
|
|
|
|
+
|
|
|
|
+ private String districtStr;
|
|
|
|
+
|
|
|
|
+ private String adTagStr;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* status
|
|
* status
|
|
*/
|
|
*/
|
|
@@ -261,29 +283,40 @@ public class ByteDanceUserOrientationTemplate {
|
|
if (null != ageRange) {
|
|
if (null != ageRange) {
|
|
this.age = ageRange.toJSONString();
|
|
this.age = ageRange.toJSONString();
|
|
}
|
|
}
|
|
|
|
+ //兴趣定向类别
|
|
String intrestType = template.getString("intrestType");
|
|
String intrestType = template.getString("intrestType");
|
|
if (null != intrestType && !intrestType.equals("")) {
|
|
if (null != intrestType && !intrestType.equals("")) {
|
|
|
|
+ this.intrestType = intrestType;
|
|
if ("NONE".equals(intrestType)) {
|
|
if ("NONE".equals(intrestType)) {
|
|
this.adTag = "[]";
|
|
this.adTag = "[]";
|
|
} else if ("SYSTEM_TJ".equals(intrestType)) {
|
|
} else if ("SYSTEM_TJ".equals(intrestType)) {
|
|
this.adTag = "[" + 0 + "]";
|
|
this.adTag = "[" + 0 + "]";
|
|
} else {
|
|
} else {
|
|
|
|
+ //兴趣分类
|
|
JSONArray categoryList = template.getJSONArray("intrestCategoryList");
|
|
JSONArray categoryList = template.getJSONArray("intrestCategoryList");
|
|
JSONArray tags = new JSONArray();
|
|
JSONArray tags = new JSONArray();
|
|
|
|
+ JSONArray adTagStr = new JSONArray();
|
|
if (null != categoryList && categoryList.size() > 0) {
|
|
if (null != categoryList && categoryList.size() > 0) {
|
|
categoryList.forEach(category -> {
|
|
categoryList.forEach(category -> {
|
|
- JSONObject categoryObject = (JSONObject) category;
|
|
|
|
- Long id = categoryObject.getLong("id");
|
|
|
|
|
|
+ JSONObject categoryObject = JSONObject.parseObject(JSONObject.toJSONString(category));
|
|
|
|
+ adTagStr.add(categoryObject);
|
|
|
|
+ Long id = categoryObject.getLong("value");
|
|
tags.add(id);
|
|
tags.add(id);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
this.adTag = tags.toJSONString();
|
|
this.adTag = tags.toJSONString();
|
|
|
|
+ this.adTagStr = adTagStr.toJSONString();
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
String platformType = template.getString("platformType");
|
|
String platformType = template.getString("platformType");
|
|
if (null != platformType && !"".equals(platformType)) {
|
|
if (null != platformType && !"".equals(platformType)) {
|
|
this.platform = platformType;
|
|
this.platform = platformType;
|
|
}
|
|
}
|
|
|
|
+ String areaType = template.getString("areaType");
|
|
|
|
+ if (null != areaType && !"".equals(areaType)) {
|
|
|
|
+ this.areaType = areaType;
|
|
|
|
+ }
|
|
JSONArray netType = template.getJSONArray("netType");
|
|
JSONArray netType = template.getJSONArray("netType");
|
|
if (null != netType) {
|
|
if (null != netType) {
|
|
this.ac = netType.toJSONString();
|
|
this.ac = netType.toJSONString();
|
|
@@ -294,15 +327,56 @@ public class ByteDanceUserOrientationTemplate {
|
|
}
|
|
}
|
|
String isArticleCategory = template.getString("isArticleCategory");
|
|
String isArticleCategory = template.getString("isArticleCategory");
|
|
if (null != isArticleCategory && !"".equals(isArticleCategory)) {
|
|
if (null != isArticleCategory && !"".equals(isArticleCategory)) {
|
|
|
|
+ this.articleCategoryType = isArticleCategory;
|
|
if ("CATEGORY".equals(isArticleCategory)) {
|
|
if ("CATEGORY".equals(isArticleCategory)) {
|
|
this.articleCategory = template.getJSONArray("tags").toJSONString();
|
|
this.articleCategory = template.getJSONArray("tags").toJSONString();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- String isMobileBrand = template.getString("isArticleCategory");
|
|
|
|
- if (null != isArticleCategory && !"".equals(isArticleCategory)) {
|
|
|
|
- if ("CATEGORY".equals(isArticleCategory)) {
|
|
|
|
|
|
+ String isMobileBrand = template.getString("isMobileBrand");
|
|
|
|
+ if (null != isMobileBrand && !"".equals(isMobileBrand)) {
|
|
|
|
+ this.mobileBrand = isMobileBrand;
|
|
|
|
+ if ("BRAND".equals(isArticleCategory)) {
|
|
this.deviceBrand = template.getJSONArray("mobileType").toJSONString();
|
|
this.deviceBrand = template.getJSONArray("mobileType").toJSONString();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ JSONArray cityList = template.getJSONArray("cityList");
|
|
|
|
+ JSONArray cityArray = new JSONArray();
|
|
|
|
+ JSONArray cityStr = new JSONArray();
|
|
|
|
+ if (null != cityList && cityList.size() > 0) {
|
|
|
|
+ cityList.forEach(city -> {
|
|
|
|
+ JSONObject cityObject = JSONObject.parseObject(JSONObject.toJSONString(city));
|
|
|
|
+ cityStr.add(cityObject);
|
|
|
|
+ Long id = cityObject.getLong("value");
|
|
|
|
+ cityArray.add(id);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ this.city = cityArray.toJSONString();
|
|
|
|
+ this.cityStr = cityStr.toJSONString();
|
|
|
|
+
|
|
|
|
+ JSONArray areaList = template.getJSONArray("areaList");
|
|
|
|
+ JSONArray areaArray = new JSONArray();
|
|
|
|
+ JSONArray areaStr = new JSONArray();
|
|
|
|
+ if (null != areaList && areaList.size() > 0) {
|
|
|
|
+ areaList.forEach(area -> {
|
|
|
|
+ JSONObject areaObject = JSONObject.parseObject(JSONObject.toJSONString(area));
|
|
|
|
+ areaStr.add(areaObject);
|
|
|
|
+ Long id = areaObject.getLong("value");
|
|
|
|
+ areaArray.add(id);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ this.district = areaArray.toJSONString();
|
|
|
|
+ this.districtStr = areaStr.toJSONString();
|
|
|
|
+
|
|
|
|
+ //兴趣关键词
|
|
|
|
+ JSONArray intrestTagList = template.getJSONArray("intrestTagList");
|
|
|
|
+ JSONArray intrestTagArray = new JSONArray();
|
|
|
|
+ if (null != intrestTagList && intrestTagList.size() > 0) {
|
|
|
|
+ intrestTagList.forEach(intrestCategory -> {
|
|
|
|
+ JSONObject intrestCategoryObject = JSONObject.parseObject(JSONObject.toJSONString(intrestCategory));
|
|
|
|
+ Long id = intrestCategoryObject.getLong("value");
|
|
|
|
+ intrestTagArray.add(id);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ this.interestTags = areaArray.toJSONString();
|
|
}
|
|
}
|
|
}
|
|
}
|