25 lines
1.4 KiB
Java
25 lines
1.4 KiB
Java
package com.baiyue.lastleg.client;
|
|||
|
|
|
||
|
|
import com.baiyue.common.core.api.ApiResponse;
|
||
|
|
import com.baiyue.common.core.api.PageResult;
|
||
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RequestHeader;
|
||
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
||
|
|
|
||
|
|
import java.math.BigDecimal;
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
|
||
|
|
@FeignClient(name="order-service", contextId="lastlegOrderPreDepartureClient", path="/internal/order/v1/predeparture-orders")
|
||
|
|
public interface OrderPreDepartureClient {
|
||
|
|
@GetMapping
|
||
|
|
ApiResponse<PageResult<Row>> page(@RequestHeader("X-Internal-Service-Token") String token,
|
||
|
|
@RequestParam(required=false) Long customerId, @RequestParam(required=false) String orderNo,
|
||
|
|
@RequestParam(required=false) String inboundCode, @RequestParam int page, @RequestParam int size);
|
||
|
|
record Row(Long orderId, Long customerId, String orderNo, String inboundCode, String mainStatus,
|
||
|
|
String customerName, String lxCode, String receivingWarehouseName, String destinationWarehouseName,
|
||
|
|
String destinationCode, Integer packageCount, BigDecimal volumeCbm, BigDecimal grossWeightKg,
|
||
|
|
BigDecimal netWeightKg, LocalDateTime expectedArrivalAt, String containerNo, String cabinetNo,
|
||
|
|
LocalDateTime estimatedSailingAt, LocalDateTime actualSailingAt, LocalDateTime createdAt, LocalDateTime updatedAt) {}
|
||
|
|
}
|