支付回调修改
This commit is contained in:
parent
ce5740d192
commit
7e79d3fc35
|
|
@ -33,6 +33,8 @@ public interface OrdersService extends IService<Orders> {
|
||||||
|
|
||||||
Orders selectOrderByOrdersNo(String ordersNo);
|
Orders selectOrderByOrdersNo(String ordersNo);
|
||||||
|
|
||||||
|
Orders selectOrderByTradeNo(String tradeNo);
|
||||||
|
|
||||||
Double statisticsIncomeMoney(String time,Integer flag,Integer ordersType);
|
Double statisticsIncomeMoney(String time,Integer flag,Integer ordersType);
|
||||||
|
|
||||||
Orders selectOrdersByCourseIdAndUserId(Long userId,Long courseId);
|
Orders selectOrdersByCourseIdAndUserId(Long userId,Long courseId);
|
||||||
|
|
|
||||||
|
|
@ -512,6 +512,11 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersDao, Orders> implements
|
||||||
return baseMapper.selectOne(new QueryWrapper<Orders>().eq("orders_no", ordersNo));
|
return baseMapper.selectOne(new QueryWrapper<Orders>().eq("orders_no", ordersNo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Orders selectOrderByTradeNo(String tradeNo) {
|
||||||
|
return baseMapper.selectOne(new QueryWrapper<Orders>().eq("trade_no", tradeNo));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Double statisticsIncomeMoney(String time, Integer flag, Integer ordersType) {
|
public Double statisticsIncomeMoney(String time, Integer flag, Integer ordersType) {
|
||||||
return baseMapper.statisticsIncomeMoney(time, flag, ordersType);
|
return baseMapper.statisticsIncomeMoney(time, flag, ordersType);
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ public class WuyouController {
|
||||||
|
|
||||||
log.info("无忧支付回调成功, 参数: {}", JSONObject.toJSONString(notifyDto));
|
log.info("无忧支付回调成功, 参数: {}", JSONObject.toJSONString(notifyDto));
|
||||||
|
|
||||||
Orders order = ordersService.selectOrderByOrdersNo(notifyDto.getOutTradeNo());
|
Orders order = ordersService.selectOrderByTradeNo(notifyDto.getOutTradeNo());
|
||||||
if (order == null) {
|
if (order == null) {
|
||||||
log.error("无忧支付回调订单不存在, 参数: {}", JSONObject.toJSONString(notifyDto));
|
log.error("无忧支付回调订单不存在, 参数: {}", JSONObject.toJSONString(notifyDto));
|
||||||
return "订单不存在";
|
return "订单不存在";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue