|
|
@@ -21,6 +21,8 @@ import com.ruoyi.common.core.exception.ServiceException;
|
|
|
import com.ruoyi.common.core.utils.DateUtils;
|
|
|
import com.ruoyi.common.core.utils.StringUtils;
|
|
|
import com.ruoyi.common.core.utils.bean.BeanUtils;
|
|
|
+import com.ruoyi.front.request.CommonBusinessGetQRCodeExtendRequest;
|
|
|
+import com.ruoyi.front.request.CommonMonthSettleQRQueryExtendRequest;
|
|
|
import com.ruoyi.logistics.config.JDExpressConfig;
|
|
|
import com.ruoyi.logistics.constant.JDDictConstants;
|
|
|
import com.ruoyi.logistics.constant.SysConfigConstants;
|
|
|
@@ -512,11 +514,11 @@ public class JDLogisticsService implements LogisticsService {
|
|
|
EcapV1BusinessQrcodeLopRequest request = new EcapV1BusinessQrcodeLopRequest();
|
|
|
|
|
|
//取消订单入参对象
|
|
|
- CommonBusinessGetQRCodeRequest requestDTO = new CommonBusinessGetQRCodeRequest();
|
|
|
+ CommonBusinessGetQRCodeExtendRequest requestDTO = new CommonBusinessGetQRCodeExtendRequest();
|
|
|
if (type == 1) {
|
|
|
requestDTO.setCustomerCode(sysConfigService.selectConfigByKey(SysConfigConstants.JD_LOGISTICS_CUSTOMERCODE));
|
|
|
} else if (type == 2) {
|
|
|
- requestDTO.setCustomerCode(sysConfigService.selectConfigByKey(SysConfigConstants.JD_LOGISTICS_BUSINESSUNITCODE));
|
|
|
+ requestDTO.setBusinessUnitCode(sysConfigService.selectConfigByKey(SysConfigConstants.JD_LOGISTICS_BUSINESSUNITCODE));
|
|
|
}
|
|
|
|
|
|
request.setRequest(requestDTO);
|
|
|
@@ -550,7 +552,7 @@ public class JDLogisticsService implements LogisticsService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public JSONObject queryOrderByQRCode(String qrCode) {
|
|
|
+ public JSONObject queryOrderByQRCode(String qrCode, Integer qrcodeType) {
|
|
|
log.info("京东开放平台根据二维码查询运单号接口,入参:{}", qrCode);
|
|
|
JSONObject result = new JSONObject();
|
|
|
try {
|
|
|
@@ -561,8 +563,12 @@ public class JDLogisticsService implements LogisticsService {
|
|
|
//入参对象
|
|
|
CommonqueryorderapiCommongetorderbymonthsettleqrv1LopRequest request = new CommonqueryorderapiCommongetorderbymonthsettleqrv1LopRequest();
|
|
|
|
|
|
- CommonMonthSettleQRQueryRequest requestDTO = new CommonMonthSettleQRQueryRequest();
|
|
|
- requestDTO.setCustomerCode(sysConfigService.selectConfigByKey(SysConfigConstants.JD_LOGISTICS_CUSTOMERCODE));
|
|
|
+ CommonMonthSettleQRQueryExtendRequest requestDTO = new CommonMonthSettleQRQueryExtendRequest();
|
|
|
+ if (1 == qrcodeType) {
|
|
|
+ requestDTO.setCustomerCode(sysConfigService.selectConfigByKey(SysConfigConstants.JD_LOGISTICS_CUSTOMERCODE));
|
|
|
+ } else if (2 == qrcodeType) {
|
|
|
+ requestDTO.setBusinessUnitCode(sysConfigService.selectConfigByKey(SysConfigConstants.JD_LOGISTICS_BUSINESSUNITCODE));
|
|
|
+ }
|
|
|
requestDTO.setMonthSettleQR(qrCode);
|
|
|
requestDTO.setAppKey(jdExpressConfig.getAppKey());
|
|
|
|