|
|
|
@@ -817,12 +817,14 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
throw new MallinkException(ErrorCode.USER_IS_EMPTY); |
|
|
|
} |
|
|
|
// 已支付,更新支付时间 |
|
|
|
updateOrder.setPaymentTime(currentDate); |
|
|
|
updateOrder.setOrderStatus(EnumOrderStatus.ORDER_STATUS_PAYMENT_SUCCESS.getCode()); |
|
|
|
updateOrder.setUpdateDate(currentDate); |
|
|
|
WxOrder updateT = new WxOrder(); |
|
|
|
updateT.setId(updateOrder.getId()); |
|
|
|
updateT.setPaymentTime(currentDate); |
|
|
|
updateT.setOrderStatus(EnumOrderStatus.ORDER_STATUS_PAYMENT_SUCCESS.getCode()); |
|
|
|
updateT.setUpdateDate(currentDate); |
|
|
|
int ret = 0; |
|
|
|
try { |
|
|
|
wxOrderMapper.updateByPrimaryKey(updateOrder); |
|
|
|
wxOrderMapper.updateByPrimaryKeySelective(updateT); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("订单更新失败:" + e.getMessage()); |
|
|
|
throw new MallinkException(ErrorCode.ORDER_UPDATE_ERR); |
|
|
|
|