Skip to content

Commit

Permalink
fix: Defect 엔티티의 function 필드 컬럼명 수정
Browse files Browse the repository at this point in the history
mysql 명령어와 겹치는 관계로 수정
  • Loading branch information
holyPigeon committed Oct 16, 2024
1 parent 29ba9b1 commit 44eb156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/java/saphy/saphy/sales/domain/Defect.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package saphy.saphy.sales.domain;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import lombok.AccessLevel;
import lombok.Getter;
Expand All @@ -12,6 +13,7 @@ public class Defect {
private String display;
private String appearance;
private String batteryEfficiency;
@Column(name = "`function`")
private String function;
private String purchaseDate;
private String isRepaired;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public class SalesController {
public ApiResponse<Void> save(
@AuthenticationPrincipal CustomUserDetails customUserDetails,
@RequestPart("request") SalesCreateRequest request,
@RequestPart("imageFiles") List<MultipartFile> multipartFiles
@RequestPart("imageFiles") List<MultipartFile> imageFiles
) {
Member member = customUserDetails.getMember();
Sales sales = salesService.save(member, request);
imageService.saveSalesImages(multipartFiles, sales.getId());
imageService.saveSalesImages(imageFiles, sales.getId());

return new ApiResponse<>(ErrorCode.REQUEST_OK);
}
Expand Down

0 comments on commit 44eb156

Please sign in to comment.