|
|
|
@ -176,14 +176,18 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
|
|
|
|
|
log.info("工厂发起取消订单:{}", JSONUtil.toJsonStr(vo)); |
|
|
|
|
CancelOrderParamVO param = new CancelOrderParamVO(); |
|
|
|
|
param.setOrderCode(vo.getSourceCode()); |
|
|
|
|
if(linsyProperties.getNewAdvance()){ |
|
|
|
|
if (linsyProperties.getNewAdvance()) { |
|
|
|
|
Boolean result = advanceClient.cancelOrder(param); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if(linsyProperties.getOldAdvance()){ |
|
|
|
|
if (linsyProperties.getOldAdvance()) { |
|
|
|
|
String post = HttpUtil.post(linsyProperties.getOldSystemHost() + linsyProperties.getOldSystemCancelAdvanceUrl(), JSONUtil.parseObj(param)); |
|
|
|
|
|
|
|
|
|
// return result;
|
|
|
|
|
if (StrUtil.isNotEmpty(post)) { |
|
|
|
|
JSONObject entries = JSONUtil.parseObj(post); |
|
|
|
|
if (ObjectUtil.equals(entries.getInt("code"), 200)) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|