|
|
@@ -123,11 +123,6 @@ public class UserPayCallback {
|
|
|
throw new ServiceException(ResCode.USER_PAY_CALLBACK_ERROR);
|
|
|
});
|
|
|
|
|
|
- //更新商品订单
|
|
|
- Assert.isTrue(handelGoodsBills(bills), () -> {
|
|
|
- throw new ServiceException(ResCode.GOODS_BILLS_ERROR);
|
|
|
- });
|
|
|
-
|
|
|
//通知处理 赠送用户积分 代理费等
|
|
|
applicationEventPublisher.publishEvent(new BillSuccessEvent(successParams));
|
|
|
|
|
|
@@ -151,21 +146,6 @@ public class UserPayCallback {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 修改商品订单
|
|
|
- * @param bills
|
|
|
- * @return
|
|
|
- */
|
|
|
- private boolean handelGoodsBills(Bills bills){
|
|
|
- GoodsBills goodsBills = goodsBillsService.getOne(Condition.getQueryWrapper(new GoodsBills()).lambda().eq(GoodsBills::getBillsId, bills.getId()));
|
|
|
- if (goodsBills != null) {
|
|
|
- goodsBills.setOrderStatus(AppConstant.BillPayStatus.付款成功.name());
|
|
|
- goodsBills.setFinishTime(bills.getCreateTime());
|
|
|
- return goodsBillsService.updateById(goodsBills);
|
|
|
- }
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 修改用户积分以及积分账单状态
|
|
|
*/
|