Authored by tanling

query trade 第三方

package com.yohoufo.order.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.yohobuy.ufo.model.order.common.ButtonShow;
import com.yohobuy.ufo.model.order.common.OrderStatus;
import com.yohobuy.ufo.model.order.common.TabType;
import com.yohobuy.ufo.model.order.resp.ExpressInfoDetail;
... ... @@ -125,6 +126,10 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO
Integer leftTime = getLeftTime(TabType.BUY, orderDetailInfo.getUid(), orderDetailInfo.getOrderCode(),
orderDetailInfo.getStatusDetail().getStatus(), orderDetailInfo.getSecendLevelCreateTime());
if (leftTime!=null && leftTime<=0){
orderDetailInfo.getButtons().removeIf(x -> x!=null && ButtonShow.NOW_BUY.getCode().equals(x.getCode()));
}
orderDetailInfo.getStatusDetail().setLeftTime(leftTime);
}
... ...
... ... @@ -83,18 +83,20 @@ public abstract class AlipayServiceAbstract extends AbstractPayService {
// 查询结果转换成 共通的对象
PayQueryBo payQueryBo = new PayQueryBo();
payQueryBo.setOrderCode(queryBo.getOut_trade_no());
payQueryBo.setTradeNo(queryBo.getTrade_no());
if ("10000".equals(queryBo.getCode())){
payQueryBo.setOrderCode(queryBo.getOut_trade_no());
payQueryBo.setTradeNo(queryBo.getTrade_no());
if ("TRADE_SUCCESS".equals(queryBo.getTrade_status())) {
payQueryBo.setPayStatus(true);
if ("TRADE_SUCCESS".equals(queryBo.getTrade_status())) {
payQueryBo.setPayStatus(true);
}else if("TRADE_CLOSED".equals(queryBo.getTrade_status())){
payQueryBo.setRefundStatus(true);
}
}else if("TRADE_CLOSED".equals(queryBo.getTrade_status())){
payQueryBo.setRefundStatus(true);
}
payQueryBo.setAmount(Double.parseDouble(queryBo.getTotal_amount()));
payQueryBo.setBuyerId(queryBo.getBuyer_user_id());
payQueryBo.setAmount(Double.parseDouble(queryBo.getTotal_amount()));
payQueryBo.setBuyerId(queryBo.getBuyer_user_id());
}
return payQueryBo;
}
... ...