|
@@ -5,6 +5,7 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
import com.yonge.cooleshow.portal.dao.PortalProductDao;
|
|
|
import com.yonge.cooleshow.portal.dto.OrderPayReq;
|
|
|
import com.yonge.cooleshow.portal.dto.OrderPayRes;
|
|
@@ -585,6 +586,18 @@ public class OmsPortalOrderServiceImpl implements OmsPortalOrderService {
|
|
|
|
|
|
saveOrderPayment(executePayment.getData(), detail,payReq.getPaymentClient());
|
|
|
|
|
|
+ if (executePayment.getStatus()) {
|
|
|
+ orderPayRes.setPay_amt(detail.getPayAmount().setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
+ String pay_info = executePayment.getData().getPayInfo();
|
|
|
+ orderPayRes.setPay_info(pay_info);
|
|
|
+ orderPayRes.setPayChannel(payReq.getPayChannel().getCode());
|
|
|
+ orderPayRes.setPaymentNo(payment.getPaymentNo());
|
|
|
+ orderPayRes.setStatus(true);
|
|
|
+
|
|
|
+ } else {
|
|
|
+ orderPayRes.setMessage(executePayment.getMsg());
|
|
|
+ orderPayRes.setStatus(false);
|
|
|
+ }
|
|
|
return orderPayRes;
|
|
|
}
|
|
|
|