|
|
@ -20,6 +20,7 @@ import com.jd.open.api.sdk.request.vopdz.VopAddressQueryJdAreaIdListRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopdz.VopAddressVerifyAreaFourIdOpenReqRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopdz.VopAddressVerifyAreaFourIdOpenReqRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopkc.VopGoodsGetNewStockByIdRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopkc.VopGoodsGetNewStockByIdRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopsh.VopAfsCreateAfsApplyRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopsh.VopAfsCreateAfsApplyRequest; |
|
|
|
|
|
|
|
import com.jd.open.api.sdk.request.vopsh.VopAfsGetAfsOutlineRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopsp.*; |
|
|
|
import com.jd.open.api.sdk.request.vopsp.*; |
|
|
|
import com.jd.open.api.sdk.request.vopxx.VopMessageDeleteClientMsgByIdListRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopxx.VopMessageDeleteClientMsgByIdListRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopxx.VopMessageQueryTransByVopNormalRequest; |
|
|
|
import com.jd.open.api.sdk.request.vopxx.VopMessageQueryTransByVopNormalRequest; |
|
|
@ -29,6 +30,7 @@ import com.jd.open.api.sdk.response.vopdz.VopAddressQueryJdAreaIdListResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopdz.VopAddressVerifyAreaFourIdOpenReqResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopdz.VopAddressVerifyAreaFourIdOpenReqResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopkc.VopGoodsGetNewStockByIdResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopkc.VopGoodsGetNewStockByIdResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopsh.VopAfsCreateAfsApplyResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopsh.VopAfsCreateAfsApplyResponse; |
|
|
|
|
|
|
|
import com.jd.open.api.sdk.response.vopsh.VopAfsGetAfsOutlineResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopsp.*; |
|
|
|
import com.jd.open.api.sdk.response.vopsp.*; |
|
|
|
import com.jd.open.api.sdk.response.vopxx.VopMessageDeleteClientMsgByIdListResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopxx.VopMessageDeleteClientMsgByIdListResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopxx.VopMessageQueryTransByVopNormalResponse; |
|
|
|
import com.jd.open.api.sdk.response.vopxx.VopMessageQueryTransByVopNormalResponse; |
|
|
@ -208,6 +210,17 @@ public class JdPostService { |
|
|
|
return client.execute(request); |
|
|
|
return client.execute(request); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询售后概要
|
|
|
|
|
|
|
|
public static VopAfsGetAfsOutlineResponse getAfsOutline(String token , Long jdOrderId) throws Exception{ |
|
|
|
|
|
|
|
JdClient client=new DefaultJdClient(SERVER_URL,token,CommonSysConst.getSysConfig().getJDAppKey(),CommonSysConst.getSysConfig().getJDAppSecret()); |
|
|
|
|
|
|
|
VopAfsGetAfsOutlineRequest request=new VopAfsGetAfsOutlineRequest(); |
|
|
|
|
|
|
|
request.setThirdApplyId("95154185727487"); |
|
|
|
|
|
|
|
request.setPageSize(20); |
|
|
|
|
|
|
|
request.setOrderId(jdOrderId); |
|
|
|
|
|
|
|
request.setPageIndex(1); |
|
|
|
|
|
|
|
return client.execute(request); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 提交预占订单服务
|
|
|
|
// 提交预占订单服务
|
|
|
|
public static VopOrderSubmitOrderResponse submitOrder(String token , GoodsUserAddress address , String orderNo , Integer skuNum , Long skuId) throws Exception { |
|
|
|
public static VopOrderSubmitOrderResponse submitOrder(String token , GoodsUserAddress address , String orderNo , Integer skuNum , Long skuId) throws Exception { |
|
|
|
// 创建京东客户端
|
|
|
|
// 创建京东客户端
|
|
|
@ -393,10 +406,12 @@ public class JdPostService { |
|
|
|
|
|
|
|
|
|
|
|
// 申请售后
|
|
|
|
// 申请售后
|
|
|
|
public static VopAfsCreateAfsApplyResponse createAfsApply( |
|
|
|
public static VopAfsCreateAfsApplyResponse createAfsApply( |
|
|
|
String token , String thirdApplyId , Integer customerExpect , Long wareId , |
|
|
|
String token , |
|
|
|
String wareName , Integer wareNum , Long jdOrderId , String customerName , |
|
|
|
String questionDesc, String questionPic, |
|
|
|
Integer pickWareProvince , Integer pickWareCounty, Integer pickWareCity ,String pickWareAddress , |
|
|
|
String thirdApplyId , Integer customerExpect , Long wareId , |
|
|
|
Integer returnWareProvince , Integer returnWareCounty , Integer returnWareCity , String returnWareAddress |
|
|
|
String wareName , Integer wareNum , Long jdOrderId , String customerName , String customerMobilePhone, |
|
|
|
|
|
|
|
Integer pickWareProvince , Integer pickWareCounty, Integer pickWareCity , Integer pickWareVillage,String pickWareAddress , |
|
|
|
|
|
|
|
Integer returnWareProvince , Integer returnWareCounty , Integer returnWareCity , Integer returnWareVillage , String returnWareAddress |
|
|
|
) throws Exception { |
|
|
|
) throws Exception { |
|
|
|
JdClient client=new DefaultJdClient(SERVER_URL,token,CommonSysConst.getSysConfig().getJDAppKey(),CommonSysConst.getSysConfig().getJDAppSecret()); |
|
|
|
JdClient client=new DefaultJdClient(SERVER_URL,token,CommonSysConst.getSysConfig().getJDAppKey(),CommonSysConst.getSysConfig().getJDAppSecret()); |
|
|
|
VopAfsCreateAfsApplyRequest request=new VopAfsCreateAfsApplyRequest(); |
|
|
|
VopAfsCreateAfsApplyRequest request=new VopAfsCreateAfsApplyRequest(); |
|
|
@ -427,13 +442,27 @@ public class JdPostService { |
|
|
|
wareDetailInfoOpenReq.setWareType(10); |
|
|
|
wareDetailInfoOpenReq.setWareType(10); |
|
|
|
// 插入
|
|
|
|
// 插入
|
|
|
|
applyInfoItemOpenReq.setWareDetailInfoOpenReq(wareDetailInfoOpenReq); |
|
|
|
applyInfoItemOpenReq.setWareDetailInfoOpenReq(wareDetailInfoOpenReq); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 商品描述信息
|
|
|
|
|
|
|
|
WareDescInfoOpenReq wareDescInfoOpenReq = new WareDescInfoOpenReq(); |
|
|
|
|
|
|
|
wareDescInfoOpenReq.setQuestionDesc(questionDesc); |
|
|
|
|
|
|
|
wareDescInfoOpenReq.setIsNeedDetectionReport(false); |
|
|
|
|
|
|
|
wareDescInfoOpenReq.setLossPreventionTagFlag(false); |
|
|
|
|
|
|
|
wareDescInfoOpenReq.setIsHasPackage(true); |
|
|
|
|
|
|
|
wareDescInfoOpenReq.setPackageDesc(1); |
|
|
|
|
|
|
|
wareDescInfoOpenReq.setQuestionPic(questionPic); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
applyInfoItemOpenReq.setWareDescInfoOpenReq(wareDescInfoOpenReq); |
|
|
|
|
|
|
|
|
|
|
|
applyInfoItemOpenReqList.add(applyInfoItemOpenReq); |
|
|
|
applyInfoItemOpenReqList.add(applyInfoItemOpenReq); |
|
|
|
applyAfterSaleOpenReq.setApplyInfoItemOpenReqList(applyInfoItemOpenReqList); |
|
|
|
applyAfterSaleOpenReq.setApplyInfoItemOpenReqList(applyInfoItemOpenReqList); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 用户信息
|
|
|
|
// 用户信息
|
|
|
|
CustomerInfoOpenReq customerInfoOpenReq=new CustomerInfoOpenReq(); |
|
|
|
CustomerInfoOpenReq customerInfoOpenReq=new CustomerInfoOpenReq(); |
|
|
|
customerInfoOpenReq.setCustomerName(customerName); |
|
|
|
customerInfoOpenReq.setCustomerName(customerName + "同学"); |
|
|
|
customerInfoOpenReq.setCustomerContactName(customerName); |
|
|
|
customerInfoOpenReq.setCustomerMobilePhone(customerMobilePhone); |
|
|
|
|
|
|
|
customerInfoOpenReq.setCustomerContactName(customerName + "同学"); |
|
|
|
// 插入
|
|
|
|
// 插入
|
|
|
|
applyAfterSaleOpenReq.setCustomerInfoVo(customerInfoOpenReq); |
|
|
|
applyAfterSaleOpenReq.setCustomerInfoVo(customerInfoOpenReq); |
|
|
|
// 取件信息
|
|
|
|
// 取件信息
|
|
|
@ -442,6 +471,7 @@ public class JdPostService { |
|
|
|
pickWareInfoOpenReq.setPickWareProvince(pickWareProvince); |
|
|
|
pickWareInfoOpenReq.setPickWareProvince(pickWareProvince); |
|
|
|
pickWareInfoOpenReq.setPickWareCity(pickWareCity); |
|
|
|
pickWareInfoOpenReq.setPickWareCity(pickWareCity); |
|
|
|
pickWareInfoOpenReq.setPickWareCounty(pickWareCounty); |
|
|
|
pickWareInfoOpenReq.setPickWareCounty(pickWareCounty); |
|
|
|
|
|
|
|
pickWareInfoOpenReq.setPickWareVillage(pickWareVillage); |
|
|
|
pickWareInfoOpenReq.setPickWareAddress(pickWareAddress); |
|
|
|
pickWareInfoOpenReq.setPickWareAddress(pickWareAddress); |
|
|
|
applyAfterSaleOpenReq.setPickupWareInfoOpenReq(pickWareInfoOpenReq); |
|
|
|
applyAfterSaleOpenReq.setPickupWareInfoOpenReq(pickWareInfoOpenReq); |
|
|
|
|
|
|
|
|
|
|
@ -451,6 +481,7 @@ public class JdPostService { |
|
|
|
returnWareInfoOpenReq.setReturnWareProvince(returnWareProvince); |
|
|
|
returnWareInfoOpenReq.setReturnWareProvince(returnWareProvince); |
|
|
|
returnWareInfoOpenReq.setReturnWareCity(returnWareCity); |
|
|
|
returnWareInfoOpenReq.setReturnWareCity(returnWareCity); |
|
|
|
returnWareInfoOpenReq.setReturnWareCountry(returnWareCounty); |
|
|
|
returnWareInfoOpenReq.setReturnWareCountry(returnWareCounty); |
|
|
|
|
|
|
|
returnWareInfoOpenReq.setReturnWareVillage(returnWareVillage); |
|
|
|
returnWareInfoOpenReq.setReturnWareAddress(returnWareAddress); |
|
|
|
returnWareInfoOpenReq.setReturnWareAddress(returnWareAddress); |
|
|
|
applyAfterSaleOpenReq.setReturnWareInfoOpenReq(returnWareInfoOpenReq); |
|
|
|
applyAfterSaleOpenReq.setReturnWareInfoOpenReq(returnWareInfoOpenReq); |
|
|
|
|
|
|
|
|
|
|
|