-
Notifications
You must be signed in to change notification settings - Fork 0
feat(Order): 오픈시간, 공지 칼럼 추가 #155
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
The head ref may contain hidden characters: "feature/#154-Store\uACF5\uC9C0\uC0AC\uD56D\uBC0F\uC624\uD508\uC2DC\uAC04\uCD94\uAC00"
Changes from all commits
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -40,28 +40,38 @@ public class Store extends BaseTimeEntity { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Column(nullable = true, length = 200) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| private String description; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Column(nullable = true, length = 200) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| private String notice; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Column(nullable = true, length = 200) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| private String openTime; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Column(name = "is_active", nullable = false) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| private Boolean isActive; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Column(nullable = false) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| private Boolean deleted; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| public Store(LocalDateTime createdAt, Long storeId, Long departmentId, String name, String location, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| String description, Boolean isActive, Boolean deleted) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| String description,String notice,String openTime, Boolean isActive, Boolean deleted) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| super(createdAt); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.storeId = storeId; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.departmentId = departmentId; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.name = name; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.location = location; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.description = description; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.notice = notice; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.openTime = openTime; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.isActive = isActive; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.deleted = deleted; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
55
to
67
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. 🛠️ Refactor suggestion 생성자 매개변수 순서와 포맷팅을 개선해주세요. 생성자가 새로운 필드를 포함하도록 올바르게 업데이트되었지만, 몇 가지 개선이 필요합니다. 다음 diff를 적용하여 매개변수 포맷팅을 개선하고 순서를 논리적으로 정리해주세요: - public Store(LocalDateTime createdAt, Long storeId, Long departmentId, String name, String location,
- String description,String notice,String openTime, Boolean isActive, Boolean deleted) {
+ public Store(LocalDateTime createdAt, Long storeId, Long departmentId, String name, String location,
+ String description, String notice, String openTime, Boolean isActive, Boolean deleted) {📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| public void updateInfo(String name, String location, String description) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| public void updateInfo(String name, String location, String description, String notice, String openTime) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (name != null) this.name = name; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (location != null) this.location = location; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (description != null) this.description = description; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (notice != null) this.notice = notice; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (openTime != null) this.openTime = openTime; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| public void markAsDeleted() { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -71,4 +81,5 @@ public void markAsDeleted() { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| public void toggleActive() { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| this.isActive = !this.isActive; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
기본값 설정에 대한 검토가 필요합니다.
하드코딩된 기본값들에 대해 몇 가지 우려사항이 있습니다:
openTime의 기본값 "00002359"가 직관적이지 않습니다 (23:59를 의미하는 것으로 보임)상수 클래스나 enum을 만들어 기본값을 관리하는 것을 제안합니다:
그리고 다음과 같이 사용:
🤖 Prompt for AI Agents