ordersMapper.updateById(updateObj);

This commit is contained in:
Owen 2025-02-10 11:13:55 +08:00
parent 7d8271ba59
commit 0c4fc76368
3 changed files with 26 additions and 11 deletions

View File

@ -18,6 +18,8 @@ public class ApiHaiNanDXService extends ApiConfigService {
public static final String Key_privateKey = "privateKey"; public static final String Key_privateKey = "privateKey";
public static final String Key_xAppId = "xAppId"; public static final String Key_xAppId = "xAppId";
public static final String Key_xAppKey = "xAppKey"; public static final String Key_xAppKey = "xAppKey";
public static final String Key_devMobile = "devMobile";
public static final String Key_devStaffCode = "devStaffCode";
private HaiNanDianXinApi.HaiNanDianXinApiConfig getConfig(Long haokaSuperiorApiId) { private HaiNanDianXinApi.HaiNanDianXinApiConfig getConfig(Long haokaSuperiorApiId) {
Map<String, String> devConfig = this.getDevConfig(haokaSuperiorApiId); Map<String, String> devConfig = this.getDevConfig(haokaSuperiorApiId);
@ -30,6 +32,8 @@ public class ApiHaiNanDXService extends ApiConfigService {
String privateKey = devConfig.get(Key_privateKey); String privateKey = devConfig.get(Key_privateKey);
String xAppId = devConfig.get(Key_xAppId); String xAppId = devConfig.get(Key_xAppId);
String xAppKey = devConfig.get(Key_xAppKey); String xAppKey = devConfig.get(Key_xAppKey);
String devMobile = devConfig.get(Key_devMobile);
String devStaffCode = devConfig.get(Key_devStaffCode);
HaiNanDianXinApi.HaiNanDianXinApiConfig config = new HaiNanDianXinApi.HaiNanDianXinApiConfig(); HaiNanDianXinApi.HaiNanDianXinApiConfig config = new HaiNanDianXinApi.HaiNanDianXinApiConfig();
config.setXAppId(xAppId); config.setXAppId(xAppId);
config.setXAppKey(xAppKey); config.setXAppKey(xAppKey);
@ -39,6 +43,8 @@ public class ApiHaiNanDXService extends ApiConfigService {
config.setMd5Key(md5Key); config.setMd5Key(md5Key);
config.setPublicKey(publicKey); config.setPublicKey(publicKey);
config.setPrivateKey(privateKey); config.setPrivateKey(privateKey);
config.setDevMobile(devMobile);
config.setDevStaffCode(devStaffCode);
return config; return config;
} }
@ -78,6 +84,7 @@ public class ApiHaiNanDXService extends ApiConfigService {
/** /**
* 物流轨迹查询 * 物流轨迹查询
*
* @return 物流轨迹查询返回结果 * @return 物流轨迹查询返回结果
* @throws UnirestException 请求异常 * @throws UnirestException 请求异常
*/ */
@ -94,6 +101,9 @@ public class ApiHaiNanDXService extends ApiConfigService {
*/ */
public HaiNanDianXinApi.HaiNanResponseInfo<HaiNanDianXinApi.SynOrderInfoResponse> public HaiNanDianXinApi.HaiNanResponseInfo<HaiNanDianXinApi.SynOrderInfoResponse>
synOrderInfo(final SuperiorApiLogSaveReqVO logVO, Long haokaSuperiorApiId, HaiNanDianXinApi.SynOrderInfoRequest param) throws UnirestException { synOrderInfo(final SuperiorApiLogSaveReqVO logVO, Long haokaSuperiorApiId, HaiNanDianXinApi.SynOrderInfoRequest param) throws UnirestException {
return HaiNanDianXinApi.synOrderInfo(logVO, this.getConfig(haokaSuperiorApiId), param); HaiNanDianXinApi.HaiNanDianXinApiConfig config = this.getConfig(haokaSuperiorApiId);
param.setDevStaffCode(config.getDevStaffCode());
param.setDevMobile(config.getDevMobile());
return HaiNanDianXinApi.synOrderInfo(logVO, config, param);
} }
} }

View File

@ -31,6 +31,8 @@ public class HaiNanDianXinApi {
private String privateKey = ""; // RSA 私钥 private String privateKey = ""; // RSA 私钥
private String xAppId = ""; private String xAppId = "";
private String xAppKey = ""; private String xAppKey = "";
private String devStaffCode ="";
private String devMobile ="";
} }
// {"message":"JTEOP: Missing APP ID found in request","reason":"APPID not found","code":"10001","referenceError":"","status":401} // {"message":"JTEOP: Missing APP ID found in request","reason":"APPID not found","code":"10001","referenceError":"","status":401}

View File

@ -92,10 +92,13 @@ public class HaiNanDxApiDealStrategy implements ApiDealStrategy {
createParam.setOrderAmount(configs.getString("ApiPrefix_orderAmount")); createParam.setOrderAmount(configs.getString("ApiPrefix_orderAmount"));
createParam.setBusiScenarioCode(configs.getString("ApiPrefix_busiScenarioCode")); createParam.setBusiScenarioCode(configs.getString("ApiPrefix_busiScenarioCode"));
createParam.setOrderType(configs.getString("ApiPrefix_orderType")); createParam.setOrderType(configs.getString("ApiPrefix_orderType"));
HaiNanDianXinApi.OrderProdInst orderProdInst = new HaiNanDianXinApi.OrderProdInst();
String string = configs.getString("ApiPrefix_prodNo");
orderProdInst.setProdNo(string);
HaiNanDianXinApi.OrderProdInst orderProdInst = new HaiNanDianXinApi.OrderProdInst();
SuperiorProductConfigRespVO superiorProductConfigRespVO = preProduct.getSuperiorProductConfigRespVO();
if (superiorProductConfigRespVO!=null){
String string = superiorProductConfigRespVO.getSuperiorCode();
orderProdInst.setProdNo(string);
}
orderProdInst.setProdName(configs.getString("ApiPrefix_prodName")); orderProdInst.setProdName(configs.getString("ApiPrefix_prodName"));
orderProdInst.setProdInstAct(configs.getString("ApiPrefix_prodInstAct")); orderProdInst.setProdInstAct(configs.getString("ApiPrefix_prodInstAct"));
createParam.setOrderProdInst(orderProdInst); createParam.setOrderProdInst(orderProdInst);