|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.yonge.cooleshow.biz.dal.dto.req.OrderPayReq;
|
|
|
+import com.yonge.cooleshow.biz.dal.entity.UserOrderRefundBill;
|
|
|
import com.yonge.cooleshow.biz.dal.enums.OrderStatusEnum;
|
|
|
import com.yonge.cooleshow.biz.dal.service.UserOrderService;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.UserOrderDetailVo;
|
|
@@ -58,13 +59,10 @@ public class UserOrderPaymentServiceImpl extends ServiceImpl<UserOrderPaymentDao
|
|
|
|
|
|
@Override
|
|
|
public UserOrderPayment detailByTransNoOrPaymentNo(String transNo, String paymentNo) {
|
|
|
- if (!StringUtil.isEmpty(transNo)) {
|
|
|
- return baseMapper.selectOne(Wrappers.<UserOrderPayment>lambdaQuery()
|
|
|
- .eq(UserOrderPayment::getTransNo, transNo));
|
|
|
- } else {
|
|
|
- return baseMapper.selectOne(Wrappers.<UserOrderPayment>lambdaQuery()
|
|
|
- .eq(UserOrderPayment::getPaymentNo, paymentNo));
|
|
|
- }
|
|
|
+ return baseMapper.selectOne(Wrappers.<UserOrderPayment>lambdaQuery().and(
|
|
|
+ wrapper -> wrapper.eq(UserOrderPayment::getTransNo, transNo)
|
|
|
+ .or().eq(UserOrderPayment::getPaymentNo, paymentNo)
|
|
|
+ ));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -168,7 +166,7 @@ public class UserOrderPaymentServiceImpl extends ServiceImpl<UserOrderPaymentDao
|
|
|
|
|
|
//付款请求
|
|
|
BaseResult<Payment> paymentResBaseResult = paymentClient.executePayment(payment);
|
|
|
- log.info("关单返回: {}", JSONObject.toJSONString(paymentResBaseResult));
|
|
|
+ log.info("付款返回: {}", JSONObject.toJSONString(paymentResBaseResult));
|
|
|
if (paymentResBaseResult.getStatus()) {
|
|
|
orderPayRes.setPay_amt(detail.getActualPrice().setScale(2, RoundingMode.HALF_UP).toString());
|
|
|
String pay_info = paymentResBaseResult.getData().getPayInfo();
|