单据上传(回传自助单据号)

dev
郑明梁 2 years ago
parent 92f760d50b
commit 80c5d58787

@ -271,5 +271,8 @@ public class IoOrderEntity {
@TableField(value = "outSickInfo")
private String outSickInfo;
@TableField(value = "fromSpmsOrders")
private String fromSpmsOrders;
}

@ -383,6 +383,12 @@ public class PlatformServiceImpl implements PlatformService {
JSON.toJSONString(ioUploadOrderResponse), buildHeader(platformLinkRespons.getAppid(), platformLinkRespons.getSecretKey()));
//回调结果 返回信息
if (StrUtil.isNotBlank(resp) && resp.contains("20000")) {
BaseResponse baseResponse= JSON.parseObject(resp, BaseResponse.class);
String formSpmsOrders= (String) baseResponse.getData();
IoOrderEntity ioOrderEntity1=new IoOrderEntity();
ioOrderEntity1.setFromSpmsOrders(formSpmsOrders);
ioOrderEntity1.setBillNo(orderId);
ioOrderService.updateByBillNo(ioOrderEntity1);
return JSON.parseObject(resp, BaseResponse.class);
} else {
log.error("获取自助平台分库失败");

Loading…
Cancel
Save