-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/#141 예산 수정 - 네이버 광고 예산 수정 API 구현 #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
cfa281a
492ab63
56a263a
5de43b0
9036cd5
56b549b
f76e671
3a30ecf
fc5ad9b
935207e
5fddf60
db6ab11
3b57c36
35ec12e
3376938
a2e19df
86177c3
f9e7a55
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,6 +43,12 @@ public class AdGroup extends BaseEntity { | |
| @OneToMany(mappedBy = "adGroup", cascade = CascadeType.ALL) | ||
| private List<AdContent> adContents = new ArrayList<>(); | ||
|
|
||
| @Column(name = "budget") | ||
| private Long budget; | ||
|
|
||
| @Column(name = "bid_amount") | ||
| private Long bidAmount; | ||
|
|
||
| @ManyToOne(fetch = FetchType.LAZY) | ||
| @JoinColumn(name = "ad_campaign_id") | ||
| private AdCampaign adCampaign; | ||
|
|
@@ -55,4 +61,9 @@ public void update(String name, Status status, String targetingInfo) { | |
| this.targetingInfo = targetingInfo; | ||
| } | ||
| } | ||
|
|
||
| public void updateBudget(Long budget, Long bidAmount) { | ||
| if (budget != null) this.budget = budget; | ||
| if (bidAmount != null) this.bidAmount = bidAmount; | ||
| } | ||
|
Comment on lines
+65
to
+68
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Line 66 조건식 때문에 🔧 제안 수정(의도 전달을 위해 플래그 포함)- public void updateBudget(Long budget, Long bidAmount) {
- if (budget != null) this.budget = budget;
- if (bidAmount != null) this.bidAmount = bidAmount;
- }
+ public void updateBudget(Boolean useDailyBudget, Long budget, Long bidAmount) {
+ if (Boolean.FALSE.equals(useDailyBudget)) {
+ this.budget = null;
+ } else if (budget != null) {
+ this.budget = budget;
+ }
+ if (bidAmount != null) {
+ this.bidAmount = bidAmount;
+ }
+ }(호출부에서 🤖 Prompt for AI Agents |
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.