采购相关接口
parent
a60c306710
commit
5c29887500
@ -0,0 +1,37 @@
|
||||
package com.ms.api.dto.dsapi.request;
|
||||
|
||||
import com.ms.api.dto.dsapi.response.GetPurchaseOrderItemsAndSourceItemsResponseDTO;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class BatchAddPurchaseConfirmLogRequestDTO {
|
||||
private String purchaseSource;
|
||||
private String purchasePlatform;
|
||||
|
||||
@Data
|
||||
public static class PlatformOrder implements Serializable {
|
||||
private String platformOrderId;
|
||||
private String userId;
|
||||
private List<PlatformOrderItem> items;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class PlatformOrderItem implements Serializable {
|
||||
private String platformOrderId;
|
||||
private String platformItemId;
|
||||
private String platformSkuId;
|
||||
private Integer itemTotal;
|
||||
private String platformSkuSubName;
|
||||
private String sourceItemId;
|
||||
private String sourceSkuId;
|
||||
private Integer sourceNum;
|
||||
private String sourceSkuPurchaseQuantity;
|
||||
private String sourceSkuSubName;
|
||||
private Integer isSkuSubNameEqual;
|
||||
private Integer isItemTotalEqual;
|
||||
private String dsRefundStatus;
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.ms.api.dto.dsapi.request;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class GetPurchaseOrderItemsAndSourceItemsRequestDTO {
|
||||
private List<Long> shopIds;
|
||||
private String platform;
|
||||
private List<String> platformItemIds;
|
||||
private List<String> platformOrderIds;
|
||||
}
|
@ -0,0 +1,167 @@
|
||||
package com.ms.api.dto.dsapi.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Data
|
||||
public class GetPurchaseOrderItemsAndSourceItemsResponseDTO extends CommonResponseDTO {
|
||||
private Map<String, ProductInfo> sourceItemIdAndProductInfoMap;
|
||||
private Map<String, CommonResponseDTO> sourceItemIdAndProductApiRetMap;
|
||||
private Map<String, SourceItemSkuRelation> platformItemIdAndSourceItemSkuRelationMap;
|
||||
private Map<String, List<PurchaseOrderItem>> platformOrderIdAndPurchaseOrderItemsMap;
|
||||
private Map<String, List<PurchaseOrder>> platformOrderIdAndPurchaseOrdersMap;
|
||||
private Map<String, SourceItemInfo> platformItemIdAndSourceItemInfoMap;
|
||||
|
||||
|
||||
@Data
|
||||
public static class ProductInfo implements Serializable {
|
||||
private Long sourceItemId;
|
||||
private String productType;
|
||||
private String categoryName;
|
||||
private String status;
|
||||
private String title;
|
||||
private String productUrl;
|
||||
private List<String> images;
|
||||
private String instanceCode;
|
||||
private Integer isJxhyOffer;
|
||||
private String sellerLoginId;
|
||||
private Long sellerId;
|
||||
private String resourceOwner;
|
||||
private List<Sku> skus;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class Sku implements Serializable {
|
||||
private Long sourceSkuId;
|
||||
private String specId;
|
||||
private Double retailPrice;
|
||||
private Double price;
|
||||
private Double consignPrice;
|
||||
private String img;
|
||||
private String skuSubName;
|
||||
private Long sourceItemId;
|
||||
private Integer stock;
|
||||
private String instanceCode;
|
||||
private Integer isJxhyOffer;
|
||||
private Double jxhyPrice;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class SourceItemSkuRelation implements Serializable {
|
||||
private Integer moveProductManualSourceSkuRelationId;
|
||||
private Integer moveProductManualSourceId;
|
||||
private Long platformSkuId;
|
||||
private Long sourceSkuId;
|
||||
private Integer sourceNum;
|
||||
private String confirmNumRatio;
|
||||
private String gmtCreate;
|
||||
private String gmtModified;
|
||||
private Long platformItemId;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class PurchaseOrderItem implements Serializable {
|
||||
private Long purchaseOrderItemId;
|
||||
private Long purchaseOrderId;
|
||||
private Long sourceOrderId;
|
||||
private Long productId;
|
||||
private Long skuId;
|
||||
private String memberId;
|
||||
private String productImgUrl;
|
||||
private String statusStr;
|
||||
private String refundStatus;
|
||||
private String productSnapshotUrl;
|
||||
private Double itemAmount;
|
||||
private Double price;
|
||||
private Long subItemId;
|
||||
private String specId;
|
||||
private String weight;
|
||||
private String quantity;
|
||||
private String subItemIdString;
|
||||
private String unit;
|
||||
private Integer quantityFactor;
|
||||
private String name;
|
||||
private Integer logisticsStatus;
|
||||
private Double refund;
|
||||
private String status;
|
||||
private String weightUnit;
|
||||
private String skuSubName;
|
||||
private String gmtCreate;
|
||||
private String gmtModified;
|
||||
private String platformOrderId;
|
||||
private Long platformItemId;
|
||||
private Long platformSkuId;
|
||||
private String flow;
|
||||
private String refundStatusText;
|
||||
private String statusText;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class PurchaseOrder implements Serializable {
|
||||
private Long purchaseOrderId;
|
||||
private String sourceOrderId;
|
||||
private String memberId;
|
||||
private String payTime;
|
||||
private Double discount;
|
||||
private String buyerLevel;
|
||||
private Double sumProductPayment;
|
||||
private String buyerFeedback;
|
||||
private Integer sellerOrder;
|
||||
private String buyerLoginId;
|
||||
private String modifyTime;
|
||||
private String subBuyerLoginId;
|
||||
private String completeTime;
|
||||
private String sellerLoginId;
|
||||
private String buyerId;
|
||||
private String closeOperateType;
|
||||
private Double totalAmount;
|
||||
private Double shippingFee;
|
||||
private String sellerId;
|
||||
private String buyerUserId;
|
||||
private Double refund;
|
||||
private String status;
|
||||
private Double refundPayment;
|
||||
private Double couponFee;
|
||||
private String refundStatus;
|
||||
private String remark;
|
||||
private String confirmedTime;
|
||||
private String tradeType;
|
||||
private String receivingTime;
|
||||
private String idOfStr;
|
||||
private String refundStatusForAs;
|
||||
private String sellerUserId;
|
||||
private String createTime;
|
||||
private String refundId;
|
||||
private String tradeTypeDesc;
|
||||
private String tradeTypeCode;
|
||||
private String waybill;
|
||||
private Integer logisticsId;
|
||||
private String logisticsName;
|
||||
private String alibabaLogisticsIds;
|
||||
private String toFullNameMd5;
|
||||
private String toMobileMd5;
|
||||
private String toFullNameS;
|
||||
private String toMobileS;
|
||||
private String filterIsTown;
|
||||
private String filterItemCount;
|
||||
private String filterItemTotal;
|
||||
private String sellerNote;
|
||||
private String platformPushStatus;
|
||||
private String purchaseSource;
|
||||
private String exceptionType;
|
||||
private String oldExceptionType;
|
||||
private String gmtCreate;
|
||||
private String gmtModified;
|
||||
private String duplicateSmd5;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class SourceItemInfo implements Serializable {
|
||||
private ProductInfo productInfo;
|
||||
private Long sourceItemId;
|
||||
private CommonResponseDTO productApiRet;
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.ms.api.dto.dsorder;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class OrderItemDTO {
|
||||
private String orderId;
|
||||
private String wareId;
|
||||
private String skuId;
|
||||
private String isPurchase;
|
||||
}
|
@ -1,13 +1,22 @@
|
||||
package com.ms.api.service;
|
||||
|
||||
import com.ms.api.dto.dsapi.request.BatchAddPurchaseConfirmLogRequestDTO;
|
||||
import com.ms.api.dto.dsapi.request.BatchCreateDistributionOrdersRequestDTO;
|
||||
import com.ms.api.dto.dsapi.request.GetPurchaseOrderItemsAndSourceItemsRequestDTO;
|
||||
import com.ms.api.dto.dsapi.request.SavePlatformManualSelectedSkuRequestDTO;
|
||||
import com.ms.api.dto.dsapi.response.BatchCreateDistributionOrdersResponseDTO;
|
||||
import com.ms.api.dto.dsapi.response.CommonResponseDTO;
|
||||
import com.ms.api.dto.dsapi.response.GetPlatformShopPurchaseSettingResponseDTO;
|
||||
import com.ms.api.dto.dsapi.response.GetPurchaseOrderItemsAndSourceItemsResponseDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DsApiService {
|
||||
GetPlatformShopPurchaseSettingResponseDTO getPlatformShopPurchaseSetting(String userId, String platform);
|
||||
BatchCreateDistributionOrdersResponseDTO batchCreateDistributionOrders(BatchCreateDistributionOrdersRequestDTO request);
|
||||
CommonResponseDTO saveDsManualSelectedSku(SavePlatformManualSelectedSkuRequestDTO request);
|
||||
GetPurchaseOrderItemsAndSourceItemsResponseDTO getPurchaseOrderItemsAndSourceItems(GetPurchaseOrderItemsAndSourceItemsRequestDTO request);
|
||||
CommonResponseDTO batchAddPurchaseConfirmLog(BatchAddPurchaseConfirmLogRequestDTO request);
|
||||
CommonResponseDTO cancelPurchaseOrderRelate(String platform, Long shopId, String orderId, List<Long> skuIds);
|
||||
CommonResponseDTO cancelPurchaseOrder(String platform, Long shopId, String orderId, String purchaseOrderSn);
|
||||
}
|
||||
|
Loading…
Reference in New Issue