|
@@ -33,29 +33,8 @@ public class ByteDanceAdvertisePlan {
|
|
|
@TableId
|
|
|
@ApiModelProperty(value = "头条平台广告计划id")
|
|
|
private Long id;
|
|
|
- /**
|
|
|
- * 平台广告主id
|
|
|
- */
|
|
|
- @Excel(name = "平台广告主id", width = 15)
|
|
|
- @ApiModelProperty(value = "平台广告主id")
|
|
|
- private String advertiserId;
|
|
|
- /**
|
|
|
- * 头条广告主id
|
|
|
- */
|
|
|
- @Excel(name = "头条广告主id", width = 15)
|
|
|
- @ApiModelProperty(value = "头条广告主id")
|
|
|
- private Long toutiaoId;
|
|
|
- /**
|
|
|
- * 计划名称
|
|
|
- */
|
|
|
- @Excel(name = "计划名称", width = 15)
|
|
|
- @ApiModelProperty(value = "计划名称")
|
|
|
+ private String accountId;
|
|
|
private String name;
|
|
|
- /**
|
|
|
- * 广告组id
|
|
|
- */
|
|
|
- @Excel(name = "广告组id", width = 15)
|
|
|
- @ApiModelProperty(value = "广告组id")
|
|
|
private Long campaignId;
|
|
|
/**
|
|
|
* 上次修改时间戳(用于更新时提交,服务端判断是否基于最新信息修改)
|
|
@@ -239,7 +218,6 @@ public class ByteDanceAdvertisePlan {
|
|
|
public ByteDanceAdvertisePlan(JSONObject dataObject, String accountId) {
|
|
|
Long id = dataObject.getLong("id");
|
|
|
this.id = id;
|
|
|
- this.advertiserId = accountId;
|
|
|
String name = dataObject.getString("name");
|
|
|
if (null != name && !"".equals(name.trim())) {
|
|
|
this.name = name;
|
|
@@ -275,7 +253,7 @@ public class ByteDanceAdvertisePlan {
|
|
|
this.updateTime = new Date();
|
|
|
Long advertiserId = dataObject.getLong("advertiser_id");
|
|
|
if (null != advertiserId) {
|
|
|
- this.toutiaoId = advertiserId;
|
|
|
+ this.accountId = advertiserId+"";
|
|
|
}
|
|
|
Long campaignId = dataObject.getLong("campaign_id");
|
|
|
if (null != campaignId) {
|
|
@@ -410,7 +388,6 @@ public class ByteDanceAdvertisePlan {
|
|
|
|
|
|
public ByteDanceAdvertisePlan(String advertiserId, Long adId, JSONObject params) {
|
|
|
this.id = adId;
|
|
|
- this.advertiserId = advertiserId;
|
|
|
String name = params.getString("name");
|
|
|
if (null != name && !"".equals(name.trim())) {
|
|
|
this.name = name;
|
|
@@ -418,7 +395,7 @@ public class ByteDanceAdvertisePlan {
|
|
|
|
|
|
Long toutiaoId = params.getLong("advertiser_id");
|
|
|
if (null != toutiaoId) {
|
|
|
- this.toutiaoId = toutiaoId;
|
|
|
+ this.accountId = toutiaoId+"";
|
|
|
}
|
|
|
Long campaignId = params.getLong("campaign_id");
|
|
|
if (null != campaignId) {
|