提交core
This commit is contained in:
parent
e51790064e
commit
0be04bb37f
|
@ -0,0 +1,26 @@
|
|||
package com.hzya.frame.ttxofs.basics;
|
||||
|
||||
import com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch.SaleOutReturnMessageDto;
|
||||
import com.hzya.frame.ttxofs.dto.ofssalesordersearch.SaleReturnMessageDto;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* api与dto的对应关系
|
||||
*
|
||||
* @Author:liuyang
|
||||
* @Package:com.hzya.frame.ttxofs.basics
|
||||
* @Project:kangarooDataCenterV3
|
||||
* @name:CacheMap
|
||||
* @Date:2024/7/30 11:51
|
||||
* @Filename:CacheMap
|
||||
*/
|
||||
public class ApiDtoCacheMap {
|
||||
|
||||
public static final HashMap<String, ReturnMessageBasics> apiDtoCacheMap = new HashMap();
|
||||
|
||||
static {
|
||||
apiDtoCacheMap.put("ofs.salesOrder.search", new SaleReturnMessageDto());
|
||||
apiDtoCacheMap.put("ofs.shipment.search", new SaleOutReturnMessageDto());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.hzya.frame.ttxofs.basics;
|
||||
|
||||
/**
|
||||
* OFS基础入参类
|
||||
*
|
||||
* @Author:liuyang
|
||||
* @Package:com.hzya.frame.ttxofs.basics
|
||||
* @Project:kangarooDataCenterV3
|
||||
* @name:InterfaceBasics
|
||||
* @Date:2024/7/30 11:39
|
||||
* @Filename:InterfaceBasics
|
||||
*/
|
||||
public class InterfaceBasics {
|
||||
|
||||
private String bashHttpUrl = "http://39.98.58.229/api/edi/ofs/in";
|
||||
|
||||
public String getBashHttpUrl() {
|
||||
return bashHttpUrl;
|
||||
}
|
||||
|
||||
public void setBashHttpUrl(String bashHttpUrl) {
|
||||
this.bashHttpUrl = bashHttpUrl;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
package com.hzya.frame.ttxofs.basics;
|
||||
|
||||
import com.hzya.frame.ttxofs.dto.ofssalesordersearch.HeaderDetailsDto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author:liuyang
|
||||
* @Package:com.hzya.frame.ttxofs.basics
|
||||
* @Project:kangarooDataCenterV3
|
||||
* @name:ReturnMessageBasics
|
||||
* @Date:2024/7/30 11:45
|
||||
* @Filename:ReturnMessageBasics
|
||||
*/
|
||||
public class ReturnMessageBasics {
|
||||
|
||||
private String code;
|
||||
private String msg;
|
||||
private String notify;
|
||||
private String error;
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public String getNotify() {
|
||||
return notify;
|
||||
}
|
||||
|
||||
public void setNotify(String notify) {
|
||||
this.notify = notify;
|
||||
}
|
||||
|
||||
public String getError() {
|
||||
return error;
|
||||
}
|
||||
|
||||
public void setError(String error) {
|
||||
this.error = error;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,96 @@
|
|||
package com.hzya.frame.ttxofs.dto;
|
||||
|
||||
import com.hzya.frame.ttxofs.basics.InterfaceBasics;
|
||||
|
||||
/**
|
||||
* OFS基础入参类
|
||||
*
|
||||
* @Author:liuyang
|
||||
* @Package:com.hzya.frame.ttxofs.basics
|
||||
* @Project:kangarooDataCenterV3
|
||||
* @name:InterfaceBasics
|
||||
* @Date:2024/7/30 11:39
|
||||
* @Filename:InterfaceBasics
|
||||
*/
|
||||
public class InterfaceParamDto extends InterfaceBasics {
|
||||
|
||||
private String api;
|
||||
|
||||
private String format = "json";
|
||||
|
||||
private String appKey = "1023142858";
|
||||
|
||||
private String v = "1.0";
|
||||
|
||||
private String sign;
|
||||
|
||||
private String secret = "382e4a2584027a36ac9431103";
|
||||
|
||||
private String timestamp;
|
||||
|
||||
private String data;
|
||||
|
||||
public String getSecret() {
|
||||
return secret;
|
||||
}
|
||||
|
||||
public void setSecret(String secret) {
|
||||
this.secret = secret;
|
||||
}
|
||||
|
||||
public String getApi() {
|
||||
return api;
|
||||
}
|
||||
|
||||
public void setApi(String api) {
|
||||
this.api = api;
|
||||
}
|
||||
|
||||
public String getFormat() {
|
||||
return format;
|
||||
}
|
||||
|
||||
public void setFormat(String format) {
|
||||
this.format = format;
|
||||
}
|
||||
|
||||
public String getAppKey() {
|
||||
return appKey;
|
||||
}
|
||||
|
||||
public void setAppKey(String appKey) {
|
||||
this.appKey = appKey;
|
||||
}
|
||||
|
||||
public String getV() {
|
||||
return v;
|
||||
}
|
||||
|
||||
public void setV(String v) {
|
||||
this.v = v;
|
||||
}
|
||||
|
||||
public String getSign() {
|
||||
return sign;
|
||||
}
|
||||
|
||||
public void setSign(String sign) {
|
||||
this.sign = sign;
|
||||
}
|
||||
|
||||
public String getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(String timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
public String getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,257 @@
|
|||
package com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch;
|
||||
|
||||
public class DetailsDto {
|
||||
|
||||
private String clientCode;
|
||||
private String companyCode;
|
||||
private String facilityCode;
|
||||
private String shipmentCode;
|
||||
private String refOrderId;
|
||||
private String refOrderDetailId;
|
||||
private String refOrderCode;
|
||||
private String allocInvId;
|
||||
private String skuCode;
|
||||
private String skuName;
|
||||
private String sourceOrderCode;
|
||||
private String inventorySts;
|
||||
private String isGift;
|
||||
private String requestQty;
|
||||
private String shipQty;
|
||||
private String quantityUM;
|
||||
private String listPrice;
|
||||
private String itemTotalAmount;
|
||||
private String totalPayAmount;
|
||||
private String totalWeight;
|
||||
private String totalVolume;
|
||||
private String totalVolumeWeight;
|
||||
private String weightUM;
|
||||
private String volumeUM;
|
||||
private String created;
|
||||
private String createdBy;
|
||||
private String lastUpdated;
|
||||
private String lastUpdatedBy;
|
||||
|
||||
public String getClientCode() {
|
||||
return clientCode;
|
||||
}
|
||||
|
||||
public void setClientCode(String clientCode) {
|
||||
this.clientCode = clientCode;
|
||||
}
|
||||
|
||||
public String getCompanyCode() {
|
||||
return companyCode;
|
||||
}
|
||||
|
||||
public void setCompanyCode(String companyCode) {
|
||||
this.companyCode = companyCode;
|
||||
}
|
||||
|
||||
public String getFacilityCode() {
|
||||
return facilityCode;
|
||||
}
|
||||
|
||||
public void setFacilityCode(String facilityCode) {
|
||||
this.facilityCode = facilityCode;
|
||||
}
|
||||
|
||||
public String getShipmentCode() {
|
||||
return shipmentCode;
|
||||
}
|
||||
|
||||
public void setShipmentCode(String shipmentCode) {
|
||||
this.shipmentCode = shipmentCode;
|
||||
}
|
||||
|
||||
public String getRefOrderId() {
|
||||
return refOrderId;
|
||||
}
|
||||
|
||||
public void setRefOrderId(String refOrderId) {
|
||||
this.refOrderId = refOrderId;
|
||||
}
|
||||
|
||||
public String getRefOrderDetailId() {
|
||||
return refOrderDetailId;
|
||||
}
|
||||
|
||||
public void setRefOrderDetailId(String refOrderDetailId) {
|
||||
this.refOrderDetailId = refOrderDetailId;
|
||||
}
|
||||
|
||||
public String getRefOrderCode() {
|
||||
return refOrderCode;
|
||||
}
|
||||
|
||||
public void setRefOrderCode(String refOrderCode) {
|
||||
this.refOrderCode = refOrderCode;
|
||||
}
|
||||
|
||||
public String getAllocInvId() {
|
||||
return allocInvId;
|
||||
}
|
||||
|
||||
public void setAllocInvId(String allocInvId) {
|
||||
this.allocInvId = allocInvId;
|
||||
}
|
||||
|
||||
public String getSkuCode() {
|
||||
return skuCode;
|
||||
}
|
||||
|
||||
public void setSkuCode(String skuCode) {
|
||||
this.skuCode = skuCode;
|
||||
}
|
||||
|
||||
public String getSkuName() {
|
||||
return skuName;
|
||||
}
|
||||
|
||||
public void setSkuName(String skuName) {
|
||||
this.skuName = skuName;
|
||||
}
|
||||
|
||||
public String getSourceOrderCode() {
|
||||
return sourceOrderCode;
|
||||
}
|
||||
|
||||
public void setSourceOrderCode(String sourceOrderCode) {
|
||||
this.sourceOrderCode = sourceOrderCode;
|
||||
}
|
||||
|
||||
public String getInventorySts() {
|
||||
return inventorySts;
|
||||
}
|
||||
|
||||
public void setInventorySts(String inventorySts) {
|
||||
this.inventorySts = inventorySts;
|
||||
}
|
||||
|
||||
public String getIsGift() {
|
||||
return isGift;
|
||||
}
|
||||
|
||||
public void setIsGift(String isGift) {
|
||||
this.isGift = isGift;
|
||||
}
|
||||
|
||||
public String getRequestQty() {
|
||||
return requestQty;
|
||||
}
|
||||
|
||||
public void setRequestQty(String requestQty) {
|
||||
this.requestQty = requestQty;
|
||||
}
|
||||
|
||||
public String getShipQty() {
|
||||
return shipQty;
|
||||
}
|
||||
|
||||
public void setShipQty(String shipQty) {
|
||||
this.shipQty = shipQty;
|
||||
}
|
||||
|
||||
public String getQuantityUM() {
|
||||
return quantityUM;
|
||||
}
|
||||
|
||||
public void setQuantityUM(String quantityUM) {
|
||||
this.quantityUM = quantityUM;
|
||||
}
|
||||
|
||||
public String getListPrice() {
|
||||
return listPrice;
|
||||
}
|
||||
|
||||
public void setListPrice(String listPrice) {
|
||||
this.listPrice = listPrice;
|
||||
}
|
||||
|
||||
public String getItemTotalAmount() {
|
||||
return itemTotalAmount;
|
||||
}
|
||||
|
||||
public void setItemTotalAmount(String itemTotalAmount) {
|
||||
this.itemTotalAmount = itemTotalAmount;
|
||||
}
|
||||
|
||||
public String getTotalPayAmount() {
|
||||
return totalPayAmount;
|
||||
}
|
||||
|
||||
public void setTotalPayAmount(String totalPayAmount) {
|
||||
this.totalPayAmount = totalPayAmount;
|
||||
}
|
||||
|
||||
public String getTotalWeight() {
|
||||
return totalWeight;
|
||||
}
|
||||
|
||||
public void setTotalWeight(String totalWeight) {
|
||||
this.totalWeight = totalWeight;
|
||||
}
|
||||
|
||||
public String getTotalVolume() {
|
||||
return totalVolume;
|
||||
}
|
||||
|
||||
public void setTotalVolume(String totalVolume) {
|
||||
this.totalVolume = totalVolume;
|
||||
}
|
||||
|
||||
public String getTotalVolumeWeight() {
|
||||
return totalVolumeWeight;
|
||||
}
|
||||
|
||||
public void setTotalVolumeWeight(String totalVolumeWeight) {
|
||||
this.totalVolumeWeight = totalVolumeWeight;
|
||||
}
|
||||
|
||||
public String getWeightUM() {
|
||||
return weightUM;
|
||||
}
|
||||
|
||||
public void setWeightUM(String weightUM) {
|
||||
this.weightUM = weightUM;
|
||||
}
|
||||
|
||||
public String getVolumeUM() {
|
||||
return volumeUM;
|
||||
}
|
||||
|
||||
public void setVolumeUM(String volumeUM) {
|
||||
this.volumeUM = volumeUM;
|
||||
}
|
||||
|
||||
public String getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(String created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getLastUpdated() {
|
||||
return lastUpdated;
|
||||
}
|
||||
|
||||
public void setLastUpdated(String lastUpdated) {
|
||||
this.lastUpdated = lastUpdated;
|
||||
}
|
||||
|
||||
public String getLastUpdatedBy() {
|
||||
return lastUpdatedBy;
|
||||
}
|
||||
|
||||
public void setLastUpdatedBy(String lastUpdatedBy) {
|
||||
this.lastUpdatedBy = lastUpdatedBy;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
package com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Auto-generated: 2024-08-01 15:44:55
|
||||
*
|
||||
* @author lzltool.com
|
||||
* @website https://www.lzltool.com/JsonToJava
|
||||
*/
|
||||
|
||||
public class HeaderDetailsDto {
|
||||
|
||||
private HeaderDto header;
|
||||
private List<DetailsDto> details;
|
||||
|
||||
public void setHeader(HeaderDto header) {
|
||||
this.header = header;
|
||||
}
|
||||
|
||||
public HeaderDto getHeader() {
|
||||
return this.header;
|
||||
}
|
||||
|
||||
public void setDetails(List<DetailsDto> details) {
|
||||
this.details = details;
|
||||
}
|
||||
|
||||
public List<DetailsDto> getDetails() {
|
||||
return this.details;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,545 @@
|
|||
package com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch;
|
||||
|
||||
public class HeaderDto {
|
||||
|
||||
private String id;
|
||||
private String clientCode;
|
||||
private String companyCode;
|
||||
private String storeCode;
|
||||
private String facilityCode;
|
||||
private String code;
|
||||
private String refOrderId;
|
||||
private String refOrderCode;
|
||||
private String refOrderType;
|
||||
private String status;
|
||||
private String consolidated;
|
||||
private String StringernalInstructionType;
|
||||
private String bizChannel;
|
||||
private String sourcePlatformCode;
|
||||
private String processType;
|
||||
private String sourceOrderId;
|
||||
private String sourceOrderCode;
|
||||
private String sourceUserAccount;
|
||||
private String shipToAttentionTo;
|
||||
private String shipToAddress;
|
||||
private String shipToCountry;
|
||||
private String shipToState;
|
||||
private String shipToCity;
|
||||
private String shipToDistrict;
|
||||
private String shipToMobile;
|
||||
private String totalLines;
|
||||
private String totalQty;
|
||||
private String totalContainers;
|
||||
private String totalCases;
|
||||
private String totalWeight;
|
||||
private String totalVolume;
|
||||
private String totalVolumeWeight;
|
||||
private String weightUM;
|
||||
private String volumeUM;
|
||||
private String totalAmount;
|
||||
private String totalPayAmount;
|
||||
private String postageAmount;
|
||||
private String itemTotalAmount;
|
||||
private String carrierCode;
|
||||
private String paymentStatus;
|
||||
private String codRequired;
|
||||
private String invoiceRequired;
|
||||
private String paidAt;
|
||||
private String shipFromAttentionTo;
|
||||
private String shipFromAddress;
|
||||
private String shipFromDistrict;
|
||||
private String shipFromCity;
|
||||
private String shipFromState;
|
||||
private String shipFromCountry;
|
||||
private String shipFromPostalCode;
|
||||
private String shipFromPhone;
|
||||
private String shipFromMobile;
|
||||
private String shipFromFax;
|
||||
private String shipFromEmail;
|
||||
private String codAmount;
|
||||
private String tax;
|
||||
private String taxPaid;
|
||||
private String shipToStateName;
|
||||
private String shipToCityName;
|
||||
private String shipToDistrictName;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getClientCode() {
|
||||
return clientCode;
|
||||
}
|
||||
|
||||
public void setClientCode(String clientCode) {
|
||||
this.clientCode = clientCode;
|
||||
}
|
||||
|
||||
public String getCompanyCode() {
|
||||
return companyCode;
|
||||
}
|
||||
|
||||
public void setCompanyCode(String companyCode) {
|
||||
this.companyCode = companyCode;
|
||||
}
|
||||
|
||||
public String getStoreCode() {
|
||||
return storeCode;
|
||||
}
|
||||
|
||||
public void setStoreCode(String storeCode) {
|
||||
this.storeCode = storeCode;
|
||||
}
|
||||
|
||||
public String getFacilityCode() {
|
||||
return facilityCode;
|
||||
}
|
||||
|
||||
public void setFacilityCode(String facilityCode) {
|
||||
this.facilityCode = facilityCode;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getRefOrderId() {
|
||||
return refOrderId;
|
||||
}
|
||||
|
||||
public void setRefOrderId(String refOrderId) {
|
||||
this.refOrderId = refOrderId;
|
||||
}
|
||||
|
||||
public String getRefOrderCode() {
|
||||
return refOrderCode;
|
||||
}
|
||||
|
||||
public void setRefOrderCode(String refOrderCode) {
|
||||
this.refOrderCode = refOrderCode;
|
||||
}
|
||||
|
||||
public String getRefOrderType() {
|
||||
return refOrderType;
|
||||
}
|
||||
|
||||
public void setRefOrderType(String refOrderType) {
|
||||
this.refOrderType = refOrderType;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getConsolidated() {
|
||||
return consolidated;
|
||||
}
|
||||
|
||||
public void setConsolidated(String consolidated) {
|
||||
this.consolidated = consolidated;
|
||||
}
|
||||
|
||||
public String getStringernalInstructionType() {
|
||||
return StringernalInstructionType;
|
||||
}
|
||||
|
||||
public void setStringernalInstructionType(String stringernalInstructionType) {
|
||||
StringernalInstructionType = stringernalInstructionType;
|
||||
}
|
||||
|
||||
public String getBizChannel() {
|
||||
return bizChannel;
|
||||
}
|
||||
|
||||
public void setBizChannel(String bizChannel) {
|
||||
this.bizChannel = bizChannel;
|
||||
}
|
||||
|
||||
public String getSourcePlatformCode() {
|
||||
return sourcePlatformCode;
|
||||
}
|
||||
|
||||
public void setSourcePlatformCode(String sourcePlatformCode) {
|
||||
this.sourcePlatformCode = sourcePlatformCode;
|
||||
}
|
||||
|
||||
public String getProcessType() {
|
||||
return processType;
|
||||
}
|
||||
|
||||
public void setProcessType(String processType) {
|
||||
this.processType = processType;
|
||||
}
|
||||
|
||||
public String getSourceOrderId() {
|
||||
return sourceOrderId;
|
||||
}
|
||||
|
||||
public void setSourceOrderId(String sourceOrderId) {
|
||||
this.sourceOrderId = sourceOrderId;
|
||||
}
|
||||
|
||||
public String getSourceOrderCode() {
|
||||
return sourceOrderCode;
|
||||
}
|
||||
|
||||
public void setSourceOrderCode(String sourceOrderCode) {
|
||||
this.sourceOrderCode = sourceOrderCode;
|
||||
}
|
||||
|
||||
public String getSourceUserAccount() {
|
||||
return sourceUserAccount;
|
||||
}
|
||||
|
||||
public void setSourceUserAccount(String sourceUserAccount) {
|
||||
this.sourceUserAccount = sourceUserAccount;
|
||||
}
|
||||
|
||||
public String getShipToAttentionTo() {
|
||||
return shipToAttentionTo;
|
||||
}
|
||||
|
||||
public void setShipToAttentionTo(String shipToAttentionTo) {
|
||||
this.shipToAttentionTo = shipToAttentionTo;
|
||||
}
|
||||
|
||||
public String getShipToAddress() {
|
||||
return shipToAddress;
|
||||
}
|
||||
|
||||
public void setShipToAddress(String shipToAddress) {
|
||||
this.shipToAddress = shipToAddress;
|
||||
}
|
||||
|
||||
public String getShipToCountry() {
|
||||
return shipToCountry;
|
||||
}
|
||||
|
||||
public void setShipToCountry(String shipToCountry) {
|
||||
this.shipToCountry = shipToCountry;
|
||||
}
|
||||
|
||||
public String getShipToState() {
|
||||
return shipToState;
|
||||
}
|
||||
|
||||
public void setShipToState(String shipToState) {
|
||||
this.shipToState = shipToState;
|
||||
}
|
||||
|
||||
public String getShipToCity() {
|
||||
return shipToCity;
|
||||
}
|
||||
|
||||
public void setShipToCity(String shipToCity) {
|
||||
this.shipToCity = shipToCity;
|
||||
}
|
||||
|
||||
public String getShipToDistrict() {
|
||||
return shipToDistrict;
|
||||
}
|
||||
|
||||
public void setShipToDistrict(String shipToDistrict) {
|
||||
this.shipToDistrict = shipToDistrict;
|
||||
}
|
||||
|
||||
public String getShipToMobile() {
|
||||
return shipToMobile;
|
||||
}
|
||||
|
||||
public void setShipToMobile(String shipToMobile) {
|
||||
this.shipToMobile = shipToMobile;
|
||||
}
|
||||
|
||||
public String getTotalLines() {
|
||||
return totalLines;
|
||||
}
|
||||
|
||||
public void setTotalLines(String totalLines) {
|
||||
this.totalLines = totalLines;
|
||||
}
|
||||
|
||||
public String getTotalQty() {
|
||||
return totalQty;
|
||||
}
|
||||
|
||||
public void setTotalQty(String totalQty) {
|
||||
this.totalQty = totalQty;
|
||||
}
|
||||
|
||||
public String getTotalContainers() {
|
||||
return totalContainers;
|
||||
}
|
||||
|
||||
public void setTotalContainers(String totalContainers) {
|
||||
this.totalContainers = totalContainers;
|
||||
}
|
||||
|
||||
public String getTotalCases() {
|
||||
return totalCases;
|
||||
}
|
||||
|
||||
public void setTotalCases(String totalCases) {
|
||||
this.totalCases = totalCases;
|
||||
}
|
||||
|
||||
public String getTotalWeight() {
|
||||
return totalWeight;
|
||||
}
|
||||
|
||||
public void setTotalWeight(String totalWeight) {
|
||||
this.totalWeight = totalWeight;
|
||||
}
|
||||
|
||||
public String getTotalVolume() {
|
||||
return totalVolume;
|
||||
}
|
||||
|
||||
public void setTotalVolume(String totalVolume) {
|
||||
this.totalVolume = totalVolume;
|
||||
}
|
||||
|
||||
public String getTotalVolumeWeight() {
|
||||
return totalVolumeWeight;
|
||||
}
|
||||
|
||||
public void setTotalVolumeWeight(String totalVolumeWeight) {
|
||||
this.totalVolumeWeight = totalVolumeWeight;
|
||||
}
|
||||
|
||||
public String getWeightUM() {
|
||||
return weightUM;
|
||||
}
|
||||
|
||||
public void setWeightUM(String weightUM) {
|
||||
this.weightUM = weightUM;
|
||||
}
|
||||
|
||||
public String getVolumeUM() {
|
||||
return volumeUM;
|
||||
}
|
||||
|
||||
public void setVolumeUM(String volumeUM) {
|
||||
this.volumeUM = volumeUM;
|
||||
}
|
||||
|
||||
public String getTotalAmount() {
|
||||
return totalAmount;
|
||||
}
|
||||
|
||||
public void setTotalAmount(String totalAmount) {
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public String getTotalPayAmount() {
|
||||
return totalPayAmount;
|
||||
}
|
||||
|
||||
public void setTotalPayAmount(String totalPayAmount) {
|
||||
this.totalPayAmount = totalPayAmount;
|
||||
}
|
||||
|
||||
public String getPostageAmount() {
|
||||
return postageAmount;
|
||||
}
|
||||
|
||||
public void setPostageAmount(String postageAmount) {
|
||||
this.postageAmount = postageAmount;
|
||||
}
|
||||
|
||||
public String getItemTotalAmount() {
|
||||
return itemTotalAmount;
|
||||
}
|
||||
|
||||
public void setItemTotalAmount(String itemTotalAmount) {
|
||||
this.itemTotalAmount = itemTotalAmount;
|
||||
}
|
||||
|
||||
public String getCarrierCode() {
|
||||
return carrierCode;
|
||||
}
|
||||
|
||||
public void setCarrierCode(String carrierCode) {
|
||||
this.carrierCode = carrierCode;
|
||||
}
|
||||
|
||||
public String getPaymentStatus() {
|
||||
return paymentStatus;
|
||||
}
|
||||
|
||||
public void setPaymentStatus(String paymentStatus) {
|
||||
this.paymentStatus = paymentStatus;
|
||||
}
|
||||
|
||||
public String getCodRequired() {
|
||||
return codRequired;
|
||||
}
|
||||
|
||||
public void setCodRequired(String codRequired) {
|
||||
this.codRequired = codRequired;
|
||||
}
|
||||
|
||||
public String getInvoiceRequired() {
|
||||
return invoiceRequired;
|
||||
}
|
||||
|
||||
public void setInvoiceRequired(String invoiceRequired) {
|
||||
this.invoiceRequired = invoiceRequired;
|
||||
}
|
||||
|
||||
public String getPaidAt() {
|
||||
return paidAt;
|
||||
}
|
||||
|
||||
public void setPaidAt(String paidAt) {
|
||||
this.paidAt = paidAt;
|
||||
}
|
||||
|
||||
public String getShipFromAttentionTo() {
|
||||
return shipFromAttentionTo;
|
||||
}
|
||||
|
||||
public void setShipFromAttentionTo(String shipFromAttentionTo) {
|
||||
this.shipFromAttentionTo = shipFromAttentionTo;
|
||||
}
|
||||
|
||||
public String getShipFromAddress() {
|
||||
return shipFromAddress;
|
||||
}
|
||||
|
||||
public void setShipFromAddress(String shipFromAddress) {
|
||||
this.shipFromAddress = shipFromAddress;
|
||||
}
|
||||
|
||||
public String getShipFromDistrict() {
|
||||
return shipFromDistrict;
|
||||
}
|
||||
|
||||
public void setShipFromDistrict(String shipFromDistrict) {
|
||||
this.shipFromDistrict = shipFromDistrict;
|
||||
}
|
||||
|
||||
public String getShipFromCity() {
|
||||
return shipFromCity;
|
||||
}
|
||||
|
||||
public void setShipFromCity(String shipFromCity) {
|
||||
this.shipFromCity = shipFromCity;
|
||||
}
|
||||
|
||||
public String getShipFromState() {
|
||||
return shipFromState;
|
||||
}
|
||||
|
||||
public void setShipFromState(String shipFromState) {
|
||||
this.shipFromState = shipFromState;
|
||||
}
|
||||
|
||||
public String getShipFromCountry() {
|
||||
return shipFromCountry;
|
||||
}
|
||||
|
||||
public void setShipFromCountry(String shipFromCountry) {
|
||||
this.shipFromCountry = shipFromCountry;
|
||||
}
|
||||
|
||||
public String getShipFromPostalCode() {
|
||||
return shipFromPostalCode;
|
||||
}
|
||||
|
||||
public void setShipFromPostalCode(String shipFromPostalCode) {
|
||||
this.shipFromPostalCode = shipFromPostalCode;
|
||||
}
|
||||
|
||||
public String getShipFromPhone() {
|
||||
return shipFromPhone;
|
||||
}
|
||||
|
||||
public void setShipFromPhone(String shipFromPhone) {
|
||||
this.shipFromPhone = shipFromPhone;
|
||||
}
|
||||
|
||||
public String getShipFromMobile() {
|
||||
return shipFromMobile;
|
||||
}
|
||||
|
||||
public void setShipFromMobile(String shipFromMobile) {
|
||||
this.shipFromMobile = shipFromMobile;
|
||||
}
|
||||
|
||||
public String getShipFromFax() {
|
||||
return shipFromFax;
|
||||
}
|
||||
|
||||
public void setShipFromFax(String shipFromFax) {
|
||||
this.shipFromFax = shipFromFax;
|
||||
}
|
||||
|
||||
public String getShipFromEmail() {
|
||||
return shipFromEmail;
|
||||
}
|
||||
|
||||
public void setShipFromEmail(String shipFromEmail) {
|
||||
this.shipFromEmail = shipFromEmail;
|
||||
}
|
||||
|
||||
public String getCodAmount() {
|
||||
return codAmount;
|
||||
}
|
||||
|
||||
public void setCodAmount(String codAmount) {
|
||||
this.codAmount = codAmount;
|
||||
}
|
||||
|
||||
public String getTax() {
|
||||
return tax;
|
||||
}
|
||||
|
||||
public void setTax(String tax) {
|
||||
this.tax = tax;
|
||||
}
|
||||
|
||||
public String getTaxPaid() {
|
||||
return taxPaid;
|
||||
}
|
||||
|
||||
public void setTaxPaid(String taxPaid) {
|
||||
this.taxPaid = taxPaid;
|
||||
}
|
||||
|
||||
public String getShipToStateName() {
|
||||
return shipToStateName;
|
||||
}
|
||||
|
||||
public void setShipToStateName(String shipToStateName) {
|
||||
this.shipToStateName = shipToStateName;
|
||||
}
|
||||
|
||||
public String getShipToCityName() {
|
||||
return shipToCityName;
|
||||
}
|
||||
|
||||
public void setShipToCityName(String shipToCityName) {
|
||||
this.shipToCityName = shipToCityName;
|
||||
}
|
||||
|
||||
public String getShipToDistrictName() {
|
||||
return shipToDistrictName;
|
||||
}
|
||||
|
||||
public void setShipToDistrictName(String shipToDistrictName) {
|
||||
this.shipToDistrictName = shipToDistrictName;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.hzya.frame.ttxofs.dto.ofssaleorderoutsearch;
|
||||
|
||||
import com.hzya.frame.ttxofs.basics.ReturnMessageBasics;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class SaleOutReturnMessageDto extends ReturnMessageBasics {
|
||||
|
||||
private List<HeaderDetailsDto> data;
|
||||
|
||||
public List<HeaderDetailsDto> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<HeaderDetailsDto> data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,401 @@
|
|||
/**
|
||||
* Copyright 2024 bejson.com
|
||||
*/
|
||||
package com.hzya.frame.ttxofs.dto.ofssalesordersearch;
|
||||
|
||||
/**
|
||||
* Auto-generated: 2024-07-30 11:32:10
|
||||
*
|
||||
* @author bejson.com (i@bejson.com)
|
||||
* @website http://www.bejson.com/java2pojo/
|
||||
*/
|
||||
public class DetailsDto {
|
||||
|
||||
private String clientCode;
|
||||
private String companyCode;
|
||||
private String storeCode;
|
||||
private String facilityCode;
|
||||
private String id;
|
||||
private String salesOrderId;
|
||||
private String salesOrderCode;
|
||||
private String skuCode;
|
||||
private String skuName;
|
||||
private String skuBarCode;
|
||||
private String sourceOrderCode;
|
||||
private String originalDetailId;
|
||||
private String requestQty;
|
||||
private String shipQty;
|
||||
private String shortQty;
|
||||
private String returnQty;
|
||||
private String allocatedQty;
|
||||
private String quantityUM;
|
||||
private String listPrice;
|
||||
private String netPrice;
|
||||
private String msrPrice;
|
||||
private String itemTotalAmount;
|
||||
private String totalPayAmount;
|
||||
private String inventorySts;
|
||||
private String totalWeight;
|
||||
private String totalVolume;
|
||||
private String totalVolumeWeight;
|
||||
private String weightUM;
|
||||
private String volumeUM;
|
||||
private String bonusPoStrings;
|
||||
private String isGift;
|
||||
private String bomType;
|
||||
private String bomQty;
|
||||
private String created;
|
||||
private String createdBy;
|
||||
private String lastUpStringd;
|
||||
private String lastUpStringdBy;
|
||||
private String isDeliverySync;
|
||||
private String payPrice;
|
||||
private String discountAmount;
|
||||
private String isMappingSku;
|
||||
private String inventoryId;
|
||||
private String shipAt;
|
||||
|
||||
public String getClientCode() {
|
||||
return clientCode;
|
||||
}
|
||||
|
||||
public void setClientCode(String clientCode) {
|
||||
this.clientCode = clientCode;
|
||||
}
|
||||
|
||||
public String getCompanyCode() {
|
||||
return companyCode;
|
||||
}
|
||||
|
||||
public void setCompanyCode(String companyCode) {
|
||||
this.companyCode = companyCode;
|
||||
}
|
||||
|
||||
public String getStoreCode() {
|
||||
return storeCode;
|
||||
}
|
||||
|
||||
public void setStoreCode(String storeCode) {
|
||||
this.storeCode = storeCode;
|
||||
}
|
||||
|
||||
public String getFacilityCode() {
|
||||
return facilityCode;
|
||||
}
|
||||
|
||||
public void setFacilityCode(String facilityCode) {
|
||||
this.facilityCode = facilityCode;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getSalesOrderId() {
|
||||
return salesOrderId;
|
||||
}
|
||||
|
||||
public void setSalesOrderId(String salesOrderId) {
|
||||
this.salesOrderId = salesOrderId;
|
||||
}
|
||||
|
||||
public String getSalesOrderCode() {
|
||||
return salesOrderCode;
|
||||
}
|
||||
|
||||
public void setSalesOrderCode(String salesOrderCode) {
|
||||
this.salesOrderCode = salesOrderCode;
|
||||
}
|
||||
|
||||
public String getSkuCode() {
|
||||
return skuCode;
|
||||
}
|
||||
|
||||
public void setSkuCode(String skuCode) {
|
||||
this.skuCode = skuCode;
|
||||
}
|
||||
|
||||
public String getSkuName() {
|
||||
return skuName;
|
||||
}
|
||||
|
||||
public void setSkuName(String skuName) {
|
||||
this.skuName = skuName;
|
||||
}
|
||||
|
||||
public String getSkuBarCode() {
|
||||
return skuBarCode;
|
||||
}
|
||||
|
||||
public void setSkuBarCode(String skuBarCode) {
|
||||
this.skuBarCode = skuBarCode;
|
||||
}
|
||||
|
||||
public String getSourceOrderCode() {
|
||||
return sourceOrderCode;
|
||||
}
|
||||
|
||||
public void setSourceOrderCode(String sourceOrderCode) {
|
||||
this.sourceOrderCode = sourceOrderCode;
|
||||
}
|
||||
|
||||
public String getOriginalDetailId() {
|
||||
return originalDetailId;
|
||||
}
|
||||
|
||||
public void setOriginalDetailId(String originalDetailId) {
|
||||
this.originalDetailId = originalDetailId;
|
||||
}
|
||||
|
||||
public String getRequestQty() {
|
||||
return requestQty;
|
||||
}
|
||||
|
||||
public void setRequestQty(String requestQty) {
|
||||
this.requestQty = requestQty;
|
||||
}
|
||||
|
||||
public String getShipQty() {
|
||||
return shipQty;
|
||||
}
|
||||
|
||||
public void setShipQty(String shipQty) {
|
||||
this.shipQty = shipQty;
|
||||
}
|
||||
|
||||
public String getShortQty() {
|
||||
return shortQty;
|
||||
}
|
||||
|
||||
public void setShortQty(String shortQty) {
|
||||
this.shortQty = shortQty;
|
||||
}
|
||||
|
||||
public String getReturnQty() {
|
||||
return returnQty;
|
||||
}
|
||||
|
||||
public void setReturnQty(String returnQty) {
|
||||
this.returnQty = returnQty;
|
||||
}
|
||||
|
||||
public String getAllocatedQty() {
|
||||
return allocatedQty;
|
||||
}
|
||||
|
||||
public void setAllocatedQty(String allocatedQty) {
|
||||
this.allocatedQty = allocatedQty;
|
||||
}
|
||||
|
||||
public String getQuantityUM() {
|
||||
return quantityUM;
|
||||
}
|
||||
|
||||
public void setQuantityUM(String quantityUM) {
|
||||
this.quantityUM = quantityUM;
|
||||
}
|
||||
|
||||
public String getListPrice() {
|
||||
return listPrice;
|
||||
}
|
||||
|
||||
public void setListPrice(String listPrice) {
|
||||
this.listPrice = listPrice;
|
||||
}
|
||||
|
||||
public String getNetPrice() {
|
||||
return netPrice;
|
||||
}
|
||||
|
||||
public void setNetPrice(String netPrice) {
|
||||
this.netPrice = netPrice;
|
||||
}
|
||||
|
||||
public String getMsrPrice() {
|
||||
return msrPrice;
|
||||
}
|
||||
|
||||
public void setMsrPrice(String msrPrice) {
|
||||
this.msrPrice = msrPrice;
|
||||
}
|
||||
|
||||
public String getItemTotalAmount() {
|
||||
return itemTotalAmount;
|
||||
}
|
||||
|
||||
public void setItemTotalAmount(String itemTotalAmount) {
|
||||
this.itemTotalAmount = itemTotalAmount;
|
||||
}
|
||||
|
||||
public String getTotalPayAmount() {
|
||||
return totalPayAmount;
|
||||
}
|
||||
|
||||
public void setTotalPayAmount(String totalPayAmount) {
|
||||
this.totalPayAmount = totalPayAmount;
|
||||
}
|
||||
|
||||
public String getInventorySts() {
|
||||
return inventorySts;
|
||||
}
|
||||
|
||||
public void setInventorySts(String inventorySts) {
|
||||
this.inventorySts = inventorySts;
|
||||
}
|
||||
|
||||
public String getTotalWeight() {
|
||||
return totalWeight;
|
||||
}
|
||||
|
||||
public void setTotalWeight(String totalWeight) {
|
||||
this.totalWeight = totalWeight;
|
||||
}
|
||||
|
||||
public String getTotalVolume() {
|
||||
return totalVolume;
|
||||
}
|
||||
|
||||
public void setTotalVolume(String totalVolume) {
|
||||
this.totalVolume = totalVolume;
|
||||
}
|
||||
|
||||
public String getTotalVolumeWeight() {
|
||||
return totalVolumeWeight;
|
||||
}
|
||||
|
||||
public void setTotalVolumeWeight(String totalVolumeWeight) {
|
||||
this.totalVolumeWeight = totalVolumeWeight;
|
||||
}
|
||||
|
||||
public String getWeightUM() {
|
||||
return weightUM;
|
||||
}
|
||||
|
||||
public void setWeightUM(String weightUM) {
|
||||
this.weightUM = weightUM;
|
||||
}
|
||||
|
||||
public String getVolumeUM() {
|
||||
return volumeUM;
|
||||
}
|
||||
|
||||
public void setVolumeUM(String volumeUM) {
|
||||
this.volumeUM = volumeUM;
|
||||
}
|
||||
|
||||
public String getBonusPoStrings() {
|
||||
return bonusPoStrings;
|
||||
}
|
||||
|
||||
public void setBonusPoStrings(String bonusPoStrings) {
|
||||
this.bonusPoStrings = bonusPoStrings;
|
||||
}
|
||||
|
||||
public String getIsGift() {
|
||||
return isGift;
|
||||
}
|
||||
|
||||
public void setIsGift(String isGift) {
|
||||
this.isGift = isGift;
|
||||
}
|
||||
|
||||
public String getBomType() {
|
||||
return bomType;
|
||||
}
|
||||
|
||||
public void setBomType(String bomType) {
|
||||
this.bomType = bomType;
|
||||
}
|
||||
|
||||
public String getBomQty() {
|
||||
return bomQty;
|
||||
}
|
||||
|
||||
public void setBomQty(String bomQty) {
|
||||
this.bomQty = bomQty;
|
||||
}
|
||||
|
||||
public String getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(String created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getLastUpStringd() {
|
||||
return lastUpStringd;
|
||||
}
|
||||
|
||||
public void setLastUpStringd(String lastUpStringd) {
|
||||
this.lastUpStringd = lastUpStringd;
|
||||
}
|
||||
|
||||
public String getLastUpStringdBy() {
|
||||
return lastUpStringdBy;
|
||||
}
|
||||
|
||||
public void setLastUpStringdBy(String lastUpStringdBy) {
|
||||
this.lastUpStringdBy = lastUpStringdBy;
|
||||
}
|
||||
|
||||
public String getIsDeliverySync() {
|
||||
return isDeliverySync;
|
||||
}
|
||||
|
||||
public void setIsDeliverySync(String isDeliverySync) {
|
||||
this.isDeliverySync = isDeliverySync;
|
||||
}
|
||||
|
||||
public String getPayPrice() {
|
||||
return payPrice;
|
||||
}
|
||||
|
||||
public void setPayPrice(String payPrice) {
|
||||
this.payPrice = payPrice;
|
||||
}
|
||||
|
||||
public String getDiscountAmount() {
|
||||
return discountAmount;
|
||||
}
|
||||
|
||||
public void setDiscountAmount(String discountAmount) {
|
||||
this.discountAmount = discountAmount;
|
||||
}
|
||||
|
||||
public String getIsMappingSku() {
|
||||
return isMappingSku;
|
||||
}
|
||||
|
||||
public void setIsMappingSku(String isMappingSku) {
|
||||
this.isMappingSku = isMappingSku;
|
||||
}
|
||||
|
||||
public String getInventoryId() {
|
||||
return inventoryId;
|
||||
}
|
||||
|
||||
public void setInventoryId(String inventoryId) {
|
||||
this.inventoryId = inventoryId;
|
||||
}
|
||||
|
||||
public String getShipAt() {
|
||||
return shipAt;
|
||||
}
|
||||
|
||||
public void setShipAt(String shipAt) {
|
||||
this.shipAt = shipAt;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
package com.hzya.frame.ttxofs.dto.ofssalesordersearch;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Auto-generated: 2024-07-30 11:32:10
|
||||
*
|
||||
* @author bejson.com (i@bejson.com)
|
||||
* @website http://www.bejson.com/java2pojo/
|
||||
*/
|
||||
public class HeaderDetailsDto {
|
||||
|
||||
private HeaderDto header;
|
||||
private List<DetailsDto> details;
|
||||
|
||||
public void setHeader(HeaderDto header) {
|
||||
this.header = header;
|
||||
}
|
||||
|
||||
public HeaderDto getHeader() {
|
||||
return header;
|
||||
}
|
||||
|
||||
public void setDetails(List<DetailsDto> details) {
|
||||
this.details = details;
|
||||
}
|
||||
|
||||
public List<DetailsDto> getDetails() {
|
||||
return details;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,779 @@
|
|||
/**
|
||||
* Copyright 2024 bejson.com
|
||||
*/
|
||||
package com.hzya.frame.ttxofs.dto.ofssalesordersearch;
|
||||
|
||||
/**
|
||||
* Auto-generated: 2024-07-30 11:32:10
|
||||
*
|
||||
* @author bejson.com (i@bejson.com)
|
||||
* @website http://www.bejson.com/java2pojo/
|
||||
*/
|
||||
public class HeaderDto {
|
||||
|
||||
private String id;
|
||||
private String clientCode;
|
||||
private String companyCode;
|
||||
private String storeCode;
|
||||
private String facilityCode;
|
||||
private String code;
|
||||
private String StringernalOrderType;
|
||||
private String bizChannel;
|
||||
private String channelCode;
|
||||
private String status;
|
||||
private String auditWaveId;
|
||||
private String orderTags;
|
||||
private String processType;
|
||||
private String flowStepCode;
|
||||
private String flowStepName;
|
||||
private String masterCode;
|
||||
private String hasBom;
|
||||
private String refOrderId;
|
||||
private String sourceOrderCode;
|
||||
private String sourceOrderType;
|
||||
private String sourcePlatformCode;
|
||||
private String sourceUserAccount;
|
||||
private String sourceUserName;
|
||||
private String tradeCreatedAt;
|
||||
private String prePaidAmount;
|
||||
private String paidAt;
|
||||
private String paymentStatus;
|
||||
private String shipToAttentionTo;
|
||||
private String shipToAddress;
|
||||
private String shipToCountry;
|
||||
private String shipToCountryName;
|
||||
private String shipToState;
|
||||
private String shipToStateName;
|
||||
private String shipToCity;
|
||||
private String shipToCityName;
|
||||
private String shipToDistrict;
|
||||
private String shipToDistrictName;
|
||||
private String shipToMobile;
|
||||
private String totalLines;
|
||||
private String totalQty;
|
||||
private String totalWeight;
|
||||
private String totalVolume;
|
||||
private String totalVolumeWeight;
|
||||
private String weightUM;
|
||||
private String volumeUM;
|
||||
private String totalAmount;
|
||||
private String totalPayAmount;
|
||||
private String postageAmount;
|
||||
private String itemTotalAmount;
|
||||
private String totalDiscountAmount;
|
||||
private String currencyCode;
|
||||
private String codRequired;
|
||||
private String invoiceRequired;
|
||||
private String carrierCode;
|
||||
private String tempCarrierCode;
|
||||
private String hasNote;
|
||||
private String split;
|
||||
private String masterOrderId;
|
||||
private String masterOrderCode;
|
||||
private String payMethod;
|
||||
private String tax;
|
||||
private String taxPaid;
|
||||
private String codAmount;
|
||||
private String verificationStatus;
|
||||
private String primaryWaybillCode;
|
||||
private String memberCode;
|
||||
private String auditBy;
|
||||
private String auditAt;
|
||||
private String created;
|
||||
private String createdBy;
|
||||
private String lastUpStringd;
|
||||
private String lastUpStringdBy;
|
||||
private String promotion;
|
||||
private String sourceOrderId;
|
||||
private String shipAt;
|
||||
private String isVirtual;
|
||||
private String isDeliverySync;
|
||||
private String writeOffStatus;
|
||||
private String isMappingArea;
|
||||
private String isMappingSku;
|
||||
private String isGift;
|
||||
private String preAudit;
|
||||
private String shipmentCode;
|
||||
private String isFinanical;
|
||||
private String finanicalStatus;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getClientCode() {
|
||||
return clientCode;
|
||||
}
|
||||
|
||||
public void setClientCode(String clientCode) {
|
||||
this.clientCode = clientCode;
|
||||
}
|
||||
|
||||
public String getCompanyCode() {
|
||||
return companyCode;
|
||||
}
|
||||
|
||||
public void setCompanyCode(String companyCode) {
|
||||
this.companyCode = companyCode;
|
||||
}
|
||||
|
||||
public String getStoreCode() {
|
||||
return storeCode;
|
||||
}
|
||||
|
||||
public void setStoreCode(String storeCode) {
|
||||
this.storeCode = storeCode;
|
||||
}
|
||||
|
||||
public String getFacilityCode() {
|
||||
return facilityCode;
|
||||
}
|
||||
|
||||
public void setFacilityCode(String facilityCode) {
|
||||
this.facilityCode = facilityCode;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getStringernalOrderType() {
|
||||
return StringernalOrderType;
|
||||
}
|
||||
|
||||
public void setStringernalOrderType(String stringernalOrderType) {
|
||||
StringernalOrderType = stringernalOrderType;
|
||||
}
|
||||
|
||||
public String getBizChannel() {
|
||||
return bizChannel;
|
||||
}
|
||||
|
||||
public void setBizChannel(String bizChannel) {
|
||||
this.bizChannel = bizChannel;
|
||||
}
|
||||
|
||||
public String getChannelCode() {
|
||||
return channelCode;
|
||||
}
|
||||
|
||||
public void setChannelCode(String channelCode) {
|
||||
this.channelCode = channelCode;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getAuditWaveId() {
|
||||
return auditWaveId;
|
||||
}
|
||||
|
||||
public void setAuditWaveId(String auditWaveId) {
|
||||
this.auditWaveId = auditWaveId;
|
||||
}
|
||||
|
||||
public String getOrderTags() {
|
||||
return orderTags;
|
||||
}
|
||||
|
||||
public void setOrderTags(String orderTags) {
|
||||
this.orderTags = orderTags;
|
||||
}
|
||||
|
||||
public String getProcessType() {
|
||||
return processType;
|
||||
}
|
||||
|
||||
public void setProcessType(String processType) {
|
||||
this.processType = processType;
|
||||
}
|
||||
|
||||
public String getFlowStepCode() {
|
||||
return flowStepCode;
|
||||
}
|
||||
|
||||
public void setFlowStepCode(String flowStepCode) {
|
||||
this.flowStepCode = flowStepCode;
|
||||
}
|
||||
|
||||
public String getFlowStepName() {
|
||||
return flowStepName;
|
||||
}
|
||||
|
||||
public void setFlowStepName(String flowStepName) {
|
||||
this.flowStepName = flowStepName;
|
||||
}
|
||||
|
||||
public String getMasterCode() {
|
||||
return masterCode;
|
||||
}
|
||||
|
||||
public void setMasterCode(String masterCode) {
|
||||
this.masterCode = masterCode;
|
||||
}
|
||||
|
||||
public String getHasBom() {
|
||||
return hasBom;
|
||||
}
|
||||
|
||||
public void setHasBom(String hasBom) {
|
||||
this.hasBom = hasBom;
|
||||
}
|
||||
|
||||
public String getRefOrderId() {
|
||||
return refOrderId;
|
||||
}
|
||||
|
||||
public void setRefOrderId(String refOrderId) {
|
||||
this.refOrderId = refOrderId;
|
||||
}
|
||||
|
||||
public String getSourceOrderCode() {
|
||||
return sourceOrderCode;
|
||||
}
|
||||
|
||||
public void setSourceOrderCode(String sourceOrderCode) {
|
||||
this.sourceOrderCode = sourceOrderCode;
|
||||
}
|
||||
|
||||
public String getSourceOrderType() {
|
||||
return sourceOrderType;
|
||||
}
|
||||
|
||||
public void setSourceOrderType(String sourceOrderType) {
|
||||
this.sourceOrderType = sourceOrderType;
|
||||
}
|
||||
|
||||
public String getSourcePlatformCode() {
|
||||
return sourcePlatformCode;
|
||||
}
|
||||
|
||||
public void setSourcePlatformCode(String sourcePlatformCode) {
|
||||
this.sourcePlatformCode = sourcePlatformCode;
|
||||
}
|
||||
|
||||
public String getSourceUserAccount() {
|
||||
return sourceUserAccount;
|
||||
}
|
||||
|
||||
public void setSourceUserAccount(String sourceUserAccount) {
|
||||
this.sourceUserAccount = sourceUserAccount;
|
||||
}
|
||||
|
||||
public String getSourceUserName() {
|
||||
return sourceUserName;
|
||||
}
|
||||
|
||||
public void setSourceUserName(String sourceUserName) {
|
||||
this.sourceUserName = sourceUserName;
|
||||
}
|
||||
|
||||
public String getTradeCreatedAt() {
|
||||
return tradeCreatedAt;
|
||||
}
|
||||
|
||||
public void setTradeCreatedAt(String tradeCreatedAt) {
|
||||
this.tradeCreatedAt = tradeCreatedAt;
|
||||
}
|
||||
|
||||
public String getPrePaidAmount() {
|
||||
return prePaidAmount;
|
||||
}
|
||||
|
||||
public void setPrePaidAmount(String prePaidAmount) {
|
||||
this.prePaidAmount = prePaidAmount;
|
||||
}
|
||||
|
||||
public String getPaidAt() {
|
||||
return paidAt;
|
||||
}
|
||||
|
||||
public void setPaidAt(String paidAt) {
|
||||
this.paidAt = paidAt;
|
||||
}
|
||||
|
||||
public String getPaymentStatus() {
|
||||
return paymentStatus;
|
||||
}
|
||||
|
||||
public void setPaymentStatus(String paymentStatus) {
|
||||
this.paymentStatus = paymentStatus;
|
||||
}
|
||||
|
||||
public String getShipToAttentionTo() {
|
||||
return shipToAttentionTo;
|
||||
}
|
||||
|
||||
public void setShipToAttentionTo(String shipToAttentionTo) {
|
||||
this.shipToAttentionTo = shipToAttentionTo;
|
||||
}
|
||||
|
||||
public String getShipToAddress() {
|
||||
return shipToAddress;
|
||||
}
|
||||
|
||||
public void setShipToAddress(String shipToAddress) {
|
||||
this.shipToAddress = shipToAddress;
|
||||
}
|
||||
|
||||
public String getShipToCountry() {
|
||||
return shipToCountry;
|
||||
}
|
||||
|
||||
public void setShipToCountry(String shipToCountry) {
|
||||
this.shipToCountry = shipToCountry;
|
||||
}
|
||||
|
||||
public String getShipToCountryName() {
|
||||
return shipToCountryName;
|
||||
}
|
||||
|
||||
public void setShipToCountryName(String shipToCountryName) {
|
||||
this.shipToCountryName = shipToCountryName;
|
||||
}
|
||||
|
||||
public String getShipToState() {
|
||||
return shipToState;
|
||||
}
|
||||
|
||||
public void setShipToState(String shipToState) {
|
||||
this.shipToState = shipToState;
|
||||
}
|
||||
|
||||
public String getShipToStateName() {
|
||||
return shipToStateName;
|
||||
}
|
||||
|
||||
public void setShipToStateName(String shipToStateName) {
|
||||
this.shipToStateName = shipToStateName;
|
||||
}
|
||||
|
||||
public String getShipToCity() {
|
||||
return shipToCity;
|
||||
}
|
||||
|
||||
public void setShipToCity(String shipToCity) {
|
||||
this.shipToCity = shipToCity;
|
||||
}
|
||||
|
||||
public String getShipToCityName() {
|
||||
return shipToCityName;
|
||||
}
|
||||
|
||||
public void setShipToCityName(String shipToCityName) {
|
||||
this.shipToCityName = shipToCityName;
|
||||
}
|
||||
|
||||
public String getShipToDistrict() {
|
||||
return shipToDistrict;
|
||||
}
|
||||
|
||||
public void setShipToDistrict(String shipToDistrict) {
|
||||
this.shipToDistrict = shipToDistrict;
|
||||
}
|
||||
|
||||
public String getShipToDistrictName() {
|
||||
return shipToDistrictName;
|
||||
}
|
||||
|
||||
public void setShipToDistrictName(String shipToDistrictName) {
|
||||
this.shipToDistrictName = shipToDistrictName;
|
||||
}
|
||||
|
||||
public String getShipToMobile() {
|
||||
return shipToMobile;
|
||||
}
|
||||
|
||||
public void setShipToMobile(String shipToMobile) {
|
||||
this.shipToMobile = shipToMobile;
|
||||
}
|
||||
|
||||
public String getTotalLines() {
|
||||
return totalLines;
|
||||
}
|
||||
|
||||
public void setTotalLines(String totalLines) {
|
||||
this.totalLines = totalLines;
|
||||
}
|
||||
|
||||
public String getTotalQty() {
|
||||
return totalQty;
|
||||
}
|
||||
|
||||
public void setTotalQty(String totalQty) {
|
||||
this.totalQty = totalQty;
|
||||
}
|
||||
|
||||
public String getTotalWeight() {
|
||||
return totalWeight;
|
||||
}
|
||||
|
||||
public void setTotalWeight(String totalWeight) {
|
||||
this.totalWeight = totalWeight;
|
||||
}
|
||||
|
||||
public String getTotalVolume() {
|
||||
return totalVolume;
|
||||
}
|
||||
|
||||
public void setTotalVolume(String totalVolume) {
|
||||
this.totalVolume = totalVolume;
|
||||
}
|
||||
|
||||
public String getTotalVolumeWeight() {
|
||||
return totalVolumeWeight;
|
||||
}
|
||||
|
||||
public void setTotalVolumeWeight(String totalVolumeWeight) {
|
||||
this.totalVolumeWeight = totalVolumeWeight;
|
||||
}
|
||||
|
||||
public String getWeightUM() {
|
||||
return weightUM;
|
||||
}
|
||||
|
||||
public void setWeightUM(String weightUM) {
|
||||
this.weightUM = weightUM;
|
||||
}
|
||||
|
||||
public String getVolumeUM() {
|
||||
return volumeUM;
|
||||
}
|
||||
|
||||
public void setVolumeUM(String volumeUM) {
|
||||
this.volumeUM = volumeUM;
|
||||
}
|
||||
|
||||
public String getTotalAmount() {
|
||||
return totalAmount;
|
||||
}
|
||||
|
||||
public void setTotalAmount(String totalAmount) {
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public String getTotalPayAmount() {
|
||||
return totalPayAmount;
|
||||
}
|
||||
|
||||
public void setTotalPayAmount(String totalPayAmount) {
|
||||
this.totalPayAmount = totalPayAmount;
|
||||
}
|
||||
|
||||
public String getPostageAmount() {
|
||||
return postageAmount;
|
||||
}
|
||||
|
||||
public void setPostageAmount(String postageAmount) {
|
||||
this.postageAmount = postageAmount;
|
||||
}
|
||||
|
||||
public String getItemTotalAmount() {
|
||||
return itemTotalAmount;
|
||||
}
|
||||
|
||||
public void setItemTotalAmount(String itemTotalAmount) {
|
||||
this.itemTotalAmount = itemTotalAmount;
|
||||
}
|
||||
|
||||
public String getTotalDiscountAmount() {
|
||||
return totalDiscountAmount;
|
||||
}
|
||||
|
||||
public void setTotalDiscountAmount(String totalDiscountAmount) {
|
||||
this.totalDiscountAmount = totalDiscountAmount;
|
||||
}
|
||||
|
||||
public String getCurrencyCode() {
|
||||
return currencyCode;
|
||||
}
|
||||
|
||||
public void setCurrencyCode(String currencyCode) {
|
||||
this.currencyCode = currencyCode;
|
||||
}
|
||||
|
||||
public String getCodRequired() {
|
||||
return codRequired;
|
||||
}
|
||||
|
||||
public void setCodRequired(String codRequired) {
|
||||
this.codRequired = codRequired;
|
||||
}
|
||||
|
||||
public String getInvoiceRequired() {
|
||||
return invoiceRequired;
|
||||
}
|
||||
|
||||
public void setInvoiceRequired(String invoiceRequired) {
|
||||
this.invoiceRequired = invoiceRequired;
|
||||
}
|
||||
|
||||
public String getCarrierCode() {
|
||||
return carrierCode;
|
||||
}
|
||||
|
||||
public void setCarrierCode(String carrierCode) {
|
||||
this.carrierCode = carrierCode;
|
||||
}
|
||||
|
||||
public String getTempCarrierCode() {
|
||||
return tempCarrierCode;
|
||||
}
|
||||
|
||||
public void setTempCarrierCode(String tempCarrierCode) {
|
||||
this.tempCarrierCode = tempCarrierCode;
|
||||
}
|
||||
|
||||
public String getHasNote() {
|
||||
return hasNote;
|
||||
}
|
||||
|
||||
public void setHasNote(String hasNote) {
|
||||
this.hasNote = hasNote;
|
||||
}
|
||||
|
||||
public String getSplit() {
|
||||
return split;
|
||||
}
|
||||
|
||||
public void setSplit(String split) {
|
||||
this.split = split;
|
||||
}
|
||||
|
||||
public String getMasterOrderId() {
|
||||
return masterOrderId;
|
||||
}
|
||||
|
||||
public void setMasterOrderId(String masterOrderId) {
|
||||
this.masterOrderId = masterOrderId;
|
||||
}
|
||||
|
||||
public String getMasterOrderCode() {
|
||||
return masterOrderCode;
|
||||
}
|
||||
|
||||
public void setMasterOrderCode(String masterOrderCode) {
|
||||
this.masterOrderCode = masterOrderCode;
|
||||
}
|
||||
|
||||
public String getPayMethod() {
|
||||
return payMethod;
|
||||
}
|
||||
|
||||
public void setPayMethod(String payMethod) {
|
||||
this.payMethod = payMethod;
|
||||
}
|
||||
|
||||
public String getTax() {
|
||||
return tax;
|
||||
}
|
||||
|
||||
public void setTax(String tax) {
|
||||
this.tax = tax;
|
||||
}
|
||||
|
||||
public String getTaxPaid() {
|
||||
return taxPaid;
|
||||
}
|
||||
|
||||
public void setTaxPaid(String taxPaid) {
|
||||
this.taxPaid = taxPaid;
|
||||
}
|
||||
|
||||
public String getCodAmount() {
|
||||
return codAmount;
|
||||
}
|
||||
|
||||
public void setCodAmount(String codAmount) {
|
||||
this.codAmount = codAmount;
|
||||
}
|
||||
|
||||
public String getVerificationStatus() {
|
||||
return verificationStatus;
|
||||
}
|
||||
|
||||
public void setVerificationStatus(String verificationStatus) {
|
||||
this.verificationStatus = verificationStatus;
|
||||
}
|
||||
|
||||
public String getPrimaryWaybillCode() {
|
||||
return primaryWaybillCode;
|
||||
}
|
||||
|
||||
public void setPrimaryWaybillCode(String primaryWaybillCode) {
|
||||
this.primaryWaybillCode = primaryWaybillCode;
|
||||
}
|
||||
|
||||
public String getMemberCode() {
|
||||
return memberCode;
|
||||
}
|
||||
|
||||
public void setMemberCode(String memberCode) {
|
||||
this.memberCode = memberCode;
|
||||
}
|
||||
|
||||
public String getAuditBy() {
|
||||
return auditBy;
|
||||
}
|
||||
|
||||
public void setAuditBy(String auditBy) {
|
||||
this.auditBy = auditBy;
|
||||
}
|
||||
|
||||
public String getAuditAt() {
|
||||
return auditAt;
|
||||
}
|
||||
|
||||
public void setAuditAt(String auditAt) {
|
||||
this.auditAt = auditAt;
|
||||
}
|
||||
|
||||
public String getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
public void setCreated(String created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getLastUpStringd() {
|
||||
return lastUpStringd;
|
||||
}
|
||||
|
||||
public void setLastUpStringd(String lastUpStringd) {
|
||||
this.lastUpStringd = lastUpStringd;
|
||||
}
|
||||
|
||||
public String getLastUpStringdBy() {
|
||||
return lastUpStringdBy;
|
||||
}
|
||||
|
||||
public void setLastUpStringdBy(String lastUpStringdBy) {
|
||||
this.lastUpStringdBy = lastUpStringdBy;
|
||||
}
|
||||
|
||||
public String getPromotion() {
|
||||
return promotion;
|
||||
}
|
||||
|
||||
public void setPromotion(String promotion) {
|
||||
this.promotion = promotion;
|
||||
}
|
||||
|
||||
public String getSourceOrderId() {
|
||||
return sourceOrderId;
|
||||
}
|
||||
|
||||
public void setSourceOrderId(String sourceOrderId) {
|
||||
this.sourceOrderId = sourceOrderId;
|
||||
}
|
||||
|
||||
public String getShipAt() {
|
||||
return shipAt;
|
||||
}
|
||||
|
||||
public void setShipAt(String shipAt) {
|
||||
this.shipAt = shipAt;
|
||||
}
|
||||
|
||||
public String getIsVirtual() {
|
||||
return isVirtual;
|
||||
}
|
||||
|
||||
public void setIsVirtual(String isVirtual) {
|
||||
this.isVirtual = isVirtual;
|
||||
}
|
||||
|
||||
public String getIsDeliverySync() {
|
||||
return isDeliverySync;
|
||||
}
|
||||
|
||||
public void setIsDeliverySync(String isDeliverySync) {
|
||||
this.isDeliverySync = isDeliverySync;
|
||||
}
|
||||
|
||||
public String getWriteOffStatus() {
|
||||
return writeOffStatus;
|
||||
}
|
||||
|
||||
public void setWriteOffStatus(String writeOffStatus) {
|
||||
this.writeOffStatus = writeOffStatus;
|
||||
}
|
||||
|
||||
public String getIsMappingArea() {
|
||||
return isMappingArea;
|
||||
}
|
||||
|
||||
public void setIsMappingArea(String isMappingArea) {
|
||||
this.isMappingArea = isMappingArea;
|
||||
}
|
||||
|
||||
public String getIsMappingSku() {
|
||||
return isMappingSku;
|
||||
}
|
||||
|
||||
public void setIsMappingSku(String isMappingSku) {
|
||||
this.isMappingSku = isMappingSku;
|
||||
}
|
||||
|
||||
public String getIsGift() {
|
||||
return isGift;
|
||||
}
|
||||
|
||||
public void setIsGift(String isGift) {
|
||||
this.isGift = isGift;
|
||||
}
|
||||
|
||||
public String getPreAudit() {
|
||||
return preAudit;
|
||||
}
|
||||
|
||||
public void setPreAudit(String preAudit) {
|
||||
this.preAudit = preAudit;
|
||||
}
|
||||
|
||||
public String getShipmentCode() {
|
||||
return shipmentCode;
|
||||
}
|
||||
|
||||
public void setShipmentCode(String shipmentCode) {
|
||||
this.shipmentCode = shipmentCode;
|
||||
}
|
||||
|
||||
public String getIsFinanical() {
|
||||
return isFinanical;
|
||||
}
|
||||
|
||||
public void setIsFinanical(String isFinanical) {
|
||||
this.isFinanical = isFinanical;
|
||||
}
|
||||
|
||||
public String getFinanicalStatus() {
|
||||
return finanicalStatus;
|
||||
}
|
||||
|
||||
public void setFinanicalStatus(String finanicalStatus) {
|
||||
this.finanicalStatus = finanicalStatus;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
/**
|
||||
* Copyright 2024 bejson.com
|
||||
*/
|
||||
package com.hzya.frame.ttxofs.dto.ofssalesordersearch;
|
||||
|
||||
import com.hzya.frame.ttxofs.basics.ReturnMessageBasics;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Auto-generated: 2024-07-30 11:32:10
|
||||
*
|
||||
* @author bejson.com (i@bejson.com)
|
||||
* @website http://www.bejson.com/java2pojo/
|
||||
*/
|
||||
public class SaleReturnMessageDto extends ReturnMessageBasics {
|
||||
|
||||
private List<HeaderDetailsDto> data;
|
||||
|
||||
public List<HeaderDetailsDto> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<HeaderDetailsDto> data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.hzya.frame.ttxofs.service;
|
||||
|
||||
import com.hzya.frame.ttxofs.basics.ReturnMessageBasics;
|
||||
import com.hzya.frame.ttxofs.dto.InterfaceParamDto;
|
||||
|
||||
/**
|
||||
* 通天晓销售业务相关接口
|
||||
*
|
||||
* @Author:liuyang
|
||||
* @Package:com.hzya.frame.ttxofs.service
|
||||
* @Project:kangarooDataCenterV3
|
||||
* @name:SalesBusinessService
|
||||
* @Date:2024/7/30 11:27
|
||||
* @Filename:SalesBusinessService
|
||||
*/
|
||||
public interface OfsUnifiedService {
|
||||
/**
|
||||
* OFS出库单查询
|
||||
*
|
||||
* @author liuyang
|
||||
*/
|
||||
ReturnMessageBasics unified(InterfaceParamDto interfaceParamDto) throws Exception;
|
||||
}
|
|
@ -0,0 +1,158 @@
|
|||
package com.hzya.frame.ttxofs.service.impl;
|
||||
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.hzya.frame.ttxofs.basics.ApiDtoCacheMap;
|
||||
import com.hzya.frame.ttxofs.basics.ReturnMessageBasics;
|
||||
import com.hzya.frame.ttxofs.dto.InterfaceParamDto;
|
||||
import com.hzya.frame.ttxofs.service.OfsUnifiedService;
|
||||
import com.hzya.frame.ttxofs.util.UrlTransUtil;
|
||||
import org.apache.http.Consts;
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.NameValuePair;
|
||||
import org.apache.http.client.config.RequestConfig;
|
||||
import org.apache.http.client.entity.UrlEncodedFormEntity;
|
||||
import org.apache.http.client.methods.CloseableHttpResponse;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.entity.ByteArrayEntity;
|
||||
import org.apache.http.entity.StringEntity;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
import org.apache.http.impl.client.HttpClientBuilder;
|
||||
import org.apache.http.impl.client.HttpClients;
|
||||
import org.apache.http.message.BasicNameValuePair;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @Author:liuyang
|
||||
* @Package:com.hzya.frame.ttxofs.service.impl
|
||||
* @Project:kangarooDataCenterV3
|
||||
* @name:SalesBusinessServiceImpl
|
||||
* @Date:2024/7/30 11:40
|
||||
* @Filename:SalesBusinessServiceImpl
|
||||
*/
|
||||
@Service(value = "ofsUnifiedService")
|
||||
public class OfsUnifiedServiceImpl implements OfsUnifiedService {
|
||||
|
||||
Logger logger = LoggerFactory.getLogger(OfsUnifiedServiceImpl.class);
|
||||
|
||||
@Override
|
||||
public ReturnMessageBasics unified(InterfaceParamDto interfaceParamDto) throws Exception {
|
||||
//从缓存中得到实体类
|
||||
interfaceParamDto.setTimestamp(String.valueOf(System.currentTimeMillis()));
|
||||
ReturnMessageBasics returnMessageBasics = ApiDtoCacheMap.apiDtoCacheMap.get(interfaceParamDto.getApi());
|
||||
|
||||
// 创建HttpClientBuilder
|
||||
HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();
|
||||
// HttpClient
|
||||
CloseableHttpClient closeableHttpClient = httpClientBuilder.build();
|
||||
|
||||
String httpUrl = UrlTransUtil.urlTrans(interfaceParamDto);
|
||||
try {
|
||||
Map<String, String> params = new HashMap<>();
|
||||
params.put("data", interfaceParamDto.getData());
|
||||
String resultStr = postParams(httpUrl, params);
|
||||
if (resultStr != null && !"".equals(resultStr.trim())) {
|
||||
ReturnMessageBasics returnMessageBasics1 = JSON.parseObject(resultStr, returnMessageBasics.getClass());
|
||||
if ("0".equals(returnMessageBasics1.getCode()) && "false".equals(returnMessageBasics1.getError())) {
|
||||
//成功
|
||||
return returnMessageBasics1;
|
||||
} else {
|
||||
//失败
|
||||
Assert.state(false, "OFS接口抛出异常 原因:{}", returnMessageBasics1.getMsg());
|
||||
}
|
||||
} else {
|
||||
//2024年7月30日 12:06:22 接口没有返回任何解决
|
||||
Assert.state(false, "OFS接口没有返回任何内容");
|
||||
}
|
||||
|
||||
// 设置连接超时和读取超时
|
||||
// RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(300000) // 连接超时时间为60秒
|
||||
// .setSocketTimeout(300000) // 读取超时时间为60秒
|
||||
// .build();
|
||||
|
||||
// HttpPost post = new HttpPost(httpUrl);
|
||||
// post.setHeader("Content-Type", "application/json;charset=UTF-8");
|
||||
// post.setConfig(requestConfig);
|
||||
//post.setHeader("charset", "utf-8");
|
||||
|
||||
// ByteArrayEntity entity = new ByteArrayEntity(String.valueOf(interfaceParamDto.getData()).getBytes("UTF-8"));
|
||||
// entity.setContentType("application/json");
|
||||
// post.setEntity(entity);
|
||||
|
||||
// JSONObject jsonObject = new JSONObject();
|
||||
// jsonObject.put("data", interfaceParamDto.getData());
|
||||
|
||||
// StringEntity stringEntity = new StringEntity(jsonObject.toString(), Consts.UTF_8);
|
||||
// stringEntity.setContentType("application/json");
|
||||
// stringEntity.setContentEncoding("UTF-8");
|
||||
// post.setEntity(stringEntity);
|
||||
|
||||
// HttpResponse response = closeableHttpClient.execute(post);
|
||||
// if (response != null && response.getEntity() != null) {
|
||||
// String resultStr = EntityUtils.toString(response.getEntity(), "UTF-8");
|
||||
// if (resultStr != null && !"".equals(resultStr.trim())) {
|
||||
// return JSON.parseObject(resultStr, returnMessageBasics.getClass());
|
||||
// } else {
|
||||
// //2024年7月30日 12:06:22 接口没有返回任何解决
|
||||
// Assert.state(false, "接口没有返回任何内容 请求地址:{}", httpUrl);
|
||||
// }
|
||||
// }
|
||||
} catch (Exception e) {
|
||||
//2024年7月30日 12:03:53 抛出方法的调用者
|
||||
String msgError = StrUtil.format("拉取/推送失败,错误原因:{} 请求地址:{}", e.getMessage(), httpUrl);
|
||||
logger.error(msgError);
|
||||
Assert.state(false, msgError);
|
||||
} finally {
|
||||
try {
|
||||
if (closeableHttpClient != null) {
|
||||
closeableHttpClient.close();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
//2024年7月30日 12:04:20这里一般不会抛出异常,记录错误
|
||||
logger.error("执行closeableHttpClient.close();时抛出异常", e);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
//适用于post请求并传送form-data数据(同样适用于post的Raw类型的application-json格式)
|
||||
public static String postParams(String url, Map<String, String> params) {
|
||||
//创建自定义的httpclient对象
|
||||
CloseableHttpClient client = HttpClients.custom().build();
|
||||
HttpPost post = new HttpPost(url);
|
||||
CloseableHttpResponse res = null;
|
||||
try {
|
||||
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
|
||||
Set<String> keySet = params.keySet();
|
||||
for (String key : keySet) {
|
||||
nvps.add(new BasicNameValuePair(key, params.get(key)));
|
||||
}
|
||||
post.setEntity(new UrlEncodedFormEntity(nvps, "utf-8"));
|
||||
res = client.execute(post);
|
||||
HttpEntity entity = res.getEntity();
|
||||
return EntityUtils.toString(entity, "utf-8");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
try {
|
||||
res.close();
|
||||
client.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
package com.hzya.frame.ttxofs.util;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.hzya.frame.ttxofs.OfsHexUtil;
|
||||
import com.hzya.frame.ttxofs.dto.InterfaceParamDto;
|
||||
|
||||
/**
|
||||
* OFS请求URl的转换处理
|
||||
*
|
||||
* @Author:liuyang
|
||||
* @Package:com.hzya.frame.ttxofs.util
|
||||
* @Project:kangarooDataCenterV3
|
||||
* @name:UtlTransUtil
|
||||
* @Date:2024/7/30 12:09
|
||||
* @Filename:UtlTransUtil
|
||||
*/
|
||||
public class UrlTransUtil {
|
||||
/**
|
||||
* Url的转换与拼接
|
||||
*/
|
||||
public static String urlTrans(InterfaceParamDto interfaceParamDto) {
|
||||
String bashHttpUrl = interfaceParamDto.getBashHttpUrl();
|
||||
//2024年7月30日 12:16:38生成签名
|
||||
OfsHexUtil ofsHexUtil = new OfsHexUtil();
|
||||
String sign = ofsHexUtil.sign(interfaceParamDto.getApi(), interfaceParamDto.getData(), interfaceParamDto.getFormat(), interfaceParamDto.getAppKey(), interfaceParamDto.getV(), interfaceParamDto.getSecret(), interfaceParamDto.getTimestamp());
|
||||
return StrUtil.format(bashHttpUrl + "?api={}&format={}&appKey={}&v={}&sign={}×tamp={}", interfaceParamDto.getApi(), interfaceParamDto.getFormat(), interfaceParamDto.getAppKey(), interfaceParamDto.getV(), sign, interfaceParamDto.getTimestamp());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue