ordersMapper.updateById(updateObj);
This commit is contained in:
parent
f765fd9579
commit
91a6ad43aa
|
@ -314,6 +314,7 @@ public class HaiNanDianXinApi {
|
|||
*/
|
||||
@Data
|
||||
public static class OrderProdInst {
|
||||
public String prodNo; // 产品编码
|
||||
public String prodName; // 产品名称
|
||||
public String prodInstAct; // 产品动作:ADD/DEL/EDIT
|
||||
}
|
||||
|
|
|
@ -93,7 +93,11 @@ public class HaiNanDxApiDealStrategy implements ApiDealStrategy {
|
|||
createParam.setBusiScenarioCode(configs.getString("ApiPrefix_busiScenarioCode"));
|
||||
createParam.setOrderType(configs.getString("ApiPrefix_orderType"));
|
||||
HaiNanDianXinApi.OrderProdInst orderProdInst = new HaiNanDianXinApi.OrderProdInst();
|
||||
orderProdInst.setProdName(configs.getString("ApiPrefix_prodNo"));
|
||||
String string = configs.getString("ApiPrefix_prodNo");
|
||||
orderProdInst.setProdNo(string);
|
||||
|
||||
orderProdInst.setProdName(configs.getString("ApiPrefix_prodName"));
|
||||
orderProdInst.setProdInstAct(configs.getString("ApiPrefix_prodInstAct"));
|
||||
createParam.setOrderProdInst(orderProdInst);
|
||||
|
||||
|
||||
|
@ -102,8 +106,6 @@ public class HaiNanDxApiDealStrategy implements ApiDealStrategy {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 0、占用号码 lianTongZhanHao
|
||||
// 1、提交资料 lianTongSubmitUserInfo
|
||||
// 2、提交预订单 得到token lianTongPreOrderSync
|
||||
|
@ -117,9 +119,25 @@ public class HaiNanDxApiDealStrategy implements ApiDealStrategy {
|
|||
HaiNanDianXinApi.SynOrderInfoResponse data = responseInfo.getData();
|
||||
if (data == null) {
|
||||
// return ApiDealResp.failed(responseInfo.getErrMsg());
|
||||
String msg = "";
|
||||
if (StringUtils.isNotEmpty(responseInfo.getErrMsg())) {
|
||||
msg = msg + responseInfo.getErrMsg();
|
||||
}
|
||||
if (StringUtils.isNotEmpty(responseInfo.getMessage())) {
|
||||
msg = msg + responseInfo.getMessage();
|
||||
}
|
||||
if (StringUtils.isNotEmpty(responseInfo.getReason())) {
|
||||
msg = msg + responseInfo.getReason();
|
||||
}
|
||||
if (StringUtils.isNotEmpty(responseInfo.getReferenceError())) {
|
||||
msg = msg + responseInfo.getReferenceError();
|
||||
}
|
||||
if (StringUtils.isEmpty( msg) ){
|
||||
msg = "上游接口返回信息为空";
|
||||
}
|
||||
|
||||
superApiResponse.setOrderStatusCode("0");
|
||||
superApiResponse.setSupplierOrderStatusDesc("上游接口返回信息为空");
|
||||
superApiResponse.setSupplierOrderStatusDesc(msg);
|
||||
return ApiDealResp.ok(superApiResponse);
|
||||
}
|
||||
if (!"1000".equals(data.getResultCode())) {
|
||||
|
|
Loading…
Reference in New Issue