Skip to content

Commit

Permalink
Chore : 큐시트 웨딩데이트 타입 수정 (#74)
Browse files Browse the repository at this point in the history
* Chore: 큐시트 다운로드 api매핑 수정

* Chore : 큐시트 웨딩데이트 타입 변경

* Chore : 큐시트 웨딩데이트 타입 변경

---------

Co-authored-by: yby654 <yby654321@gmail.com>
  • Loading branch information
yby654 and yby654321 authored Nov 13, 2023
1 parent 7581d05 commit 15ba991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion nw/src/main/java/lab/cherry/nw/model/QsheetEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public class QsheetEntity implements Serializable {
private Instant created_at;

@JsonProperty("wedding_date")
@JsonFormat(pattern="yyyy-MM-dd hh:mm:ss", locale = "ko_KR", timezone = "Asia/Seoul")
@JsonFormat(locale = "ko_KR", timezone = "Asia/Seoul")
// @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss", locale = "ko_KR", timezone = "Asia/Seoul")
@Schema(title = "결혼식 날짜", example = "2023-07-04 12:00:00")
private String wedding_date;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public QsheetEntity createQsheet(QsheetEntity.QsheetCreateDto qsheetCreateDto, L
.client_confirm(false)
// .finalConfirm(FinalConfirm.builder().build())
.created_at(instant)
.wedding_date(userCardEntity!=null? userCardEntity.getWeddingDate() : "")
.wedding_date(userCardEntity!=null? userCardEntity.getWeddingDate() : null)
.build();
qsheetRepository.save(qsheetEntity);
qsheetLogService.createQsheetLog("create", qsheetEntity);
Expand Down Expand Up @@ -259,7 +259,7 @@ public void updateById(String id, QsheetEntity.QsheetUpdateDto qsheetUpdateDto,
.org(orgEntity)
.user(qsheetEntity.getUser())
.created_at(qsheetEntity.getCreated_at())
.wedding_date(userCardEntity!=null? userCardEntity.getWeddingDate() : "")
.wedding_date(userCardEntity!=null? userCardEntity.getWeddingDate() : null)
.data(qsheetUpdateDto.getData()!=null?newItemData:qsheetEntity.getData())
.org_approver(orgUserEntity)
.org_confirm(qsheetUpdateDto.isOrg_confirm()==!(qsheetEntity.isOrg_confirm())?qsheetUpdateDto.isOrg_confirm():qsheetEntity.isOrg_confirm())
Expand Down

0 comments on commit 15ba991

Please sign in to comment.