-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from ClothingStoreService/refactor/order
Refactor/order
- Loading branch information
Showing
28 changed files
with
850 additions
and
119 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/generated/org/store/clothstar/order/dto/reponse/QOrderResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.store.clothstar.order.dto.reponse; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.ConstructorExpression; | ||
import javax.annotation.processing.Generated; | ||
|
||
/** | ||
* org.store.clothstar.order.dto.reponse.QOrderResponse is a Querydsl Projection type for OrderResponse | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultProjectionSerializer") | ||
public class QOrderResponse extends ConstructorExpression<OrderResponse> { | ||
|
||
private static final long serialVersionUID = -1258133913L; | ||
|
||
public QOrderResponse(com.querydsl.core.types.Expression<? extends org.store.clothstar.order.entity.OrderEntity> orderEntity, com.querydsl.core.types.Expression<? extends org.store.clothstar.orderDetail.entity.OrderDetailEntity> orderDetailEntity, com.querydsl.core.types.Expression<? extends org.store.clothstar.member.entity.MemberEntity> memberEntity, com.querydsl.core.types.Expression<? extends org.store.clothstar.member.entity.AddressEntity> addressEntity, com.querydsl.core.types.Expression<? extends org.store.clothstar.productLine.entity.ProductLineEntity> productLineEntity) { | ||
super(OrderResponse.class, new Class<?>[]{org.store.clothstar.order.entity.OrderEntity.class, org.store.clothstar.orderDetail.entity.OrderDetailEntity.class, org.store.clothstar.member.entity.MemberEntity.class, org.store.clothstar.member.entity.AddressEntity.class, org.store.clothstar.productLine.entity.ProductLineEntity.class}, orderEntity, orderDetailEntity, memberEntity, addressEntity, productLineEntity); | ||
} | ||
|
||
} | ||
|
21 changes: 21 additions & 0 deletions
21
src/main/generated/org/store/clothstar/orderDetail/dto/QOrderDetailDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.store.clothstar.orderDetail.dto; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.ConstructorExpression; | ||
import javax.annotation.processing.Generated; | ||
|
||
/** | ||
* org.store.clothstar.orderDetail.dto.QOrderDetailDTO is a Querydsl Projection type for OrderDetailDTO | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultProjectionSerializer") | ||
public class QOrderDetailDTO extends ConstructorExpression<OrderDetailDTO> { | ||
|
||
private static final long serialVersionUID = -767891785L; | ||
|
||
public QOrderDetailDTO(com.querydsl.core.types.Expression<? extends org.store.clothstar.orderDetail.entity.OrderDetailEntity> orderDetailEntity) { | ||
super(OrderDetailDTO.class, new Class<?>[]{org.store.clothstar.orderDetail.entity.OrderDetailEntity.class}, orderDetailEntity); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/org/store/clothstar/order/controller/OrderViewController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.store.clothstar.order.controller; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
@Controller | ||
public class OrderViewController { | ||
@GetMapping("/ordersPagingOffset") | ||
public String ordersPagingOffset() { | ||
return "orderOffsetList"; | ||
} | ||
|
||
@GetMapping("/ordersPagingSlice") | ||
public String ordersPagingSlice() { | ||
return "orderSliceList"; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/org/store/clothstar/order/dto/reponse/AddressDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.store.clothstar.order.dto.reponse; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Schema(description = "배송지 정보") | ||
public class AddressDTO { | ||
@Schema(description = "수령인 이름", example = "수빈") | ||
private String receiverName; | ||
|
||
@Schema(description = "기본 주소", example = "서울시 강남구") | ||
private String addressBasic; | ||
|
||
@Schema(description = "상세 주소", example = "123-456") | ||
private String addressDetail; | ||
|
||
@Schema(description = "전화번호", example = "010-1234-5678") | ||
private String telNo; | ||
|
||
@Schema(description = "배송 요청 사항", example = "문 앞에 놓아주세요.") | ||
private String deliveryRequest; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/java/org/store/clothstar/order/repository/order/JpaOrderRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
...in/java/org/store/clothstar/order/repository/orderSeller/OrderEntityRepositoryCustom.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
package org.store.clothstar.order.repository.orderSeller; | ||
|
||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.domain.Slice; | ||
import org.store.clothstar.order.dto.reponse.OrderResponse; | ||
import org.store.clothstar.order.entity.OrderEntity; | ||
|
||
import java.util.List; | ||
|
||
public interface OrderEntityRepositoryCustom { | ||
//Order 관련 메서드 | ||
OrderResponse findOrderWithDetails(Long orderId); | ||
|
||
Page<OrderResponse> findAllOffsetPaging(Pageable pageable); | ||
|
||
Slice<OrderResponse> findAllSlicePaging(Pageable pageable); | ||
|
||
//OrderSeller 관련 메서드 | ||
List<OrderResponse> findWaitingOrders(); | ||
} |
Oops, something went wrong.