|
@@ -94,9 +94,6 @@ public class ByteDanceCampaign {
|
|
|
private Date updateTime;
|
|
|
|
|
|
public ByteDanceCampaign() {
|
|
|
- Date now = new Date();
|
|
|
- this.createTime = now;
|
|
|
- this.updateTime = now;
|
|
|
}
|
|
|
|
|
|
public ByteDanceCampaign(Long id, String advertiserId, Long toutiaoId, String name, BigDecimal budget, String budgetMode, String landingType, String modifyTime, String status, String optStatus, String campaignCreateTime, String campaignModifyTime, Date createTime, Date updateTime) {
|
|
@@ -160,6 +157,9 @@ public class ByteDanceCampaign {
|
|
|
if (null!=campaign_modify_time&&!"".equals(campaign_modify_time.trim())){
|
|
|
this.campaignModifyTime =campaign_modify_time;
|
|
|
}
|
|
|
+ Date now = new Date();
|
|
|
+ this.createTime = now;
|
|
|
+ this.updateTime = now;
|
|
|
}
|
|
|
|
|
|
public ByteDanceCampaign(Long id, CTopOauthToken oauthToken, String campaignName, String budgetMode, Integer budget, String landingType) {
|
|
@@ -170,6 +170,9 @@ public class ByteDanceCampaign {
|
|
|
this.budget = BigDecimal.valueOf(budget);
|
|
|
this.landingType = landingType;
|
|
|
this.toutiaoId = oauthToken.getAccountId();
|
|
|
+ Date now = new Date();
|
|
|
+ this.createTime = now;
|
|
|
+ this.updateTime = now;
|
|
|
}
|
|
|
|
|
|
public ByteDanceCampaign(Long id, CTopOauthToken token, ByteDanceCampaignTemplate template) {
|
|
@@ -181,5 +184,8 @@ public class ByteDanceCampaign {
|
|
|
this.landingType = template.getPromotionPurpose();
|
|
|
this.toutiaoId = token.getAccountId();
|
|
|
this.templateId = template.getId();
|
|
|
+ Date now = new Date();
|
|
|
+ this.createTime = now;
|
|
|
+ this.updateTime = now;
|
|
|
}
|
|
|
}
|