| | |
| | | } catch (ElmeHongBaoOrderMapException e) {
|
| | | throw new ElmeOrderException(e.getCode(), e.getMsg());
|
| | | }
|
| | | // 发送消息
|
| | | userOrderMsgNotificationService.orderElmeStatistic(user.getId(), elmeOrder.getOrderId(),
|
| | | Constant.SOURCE_TYPE_ELME, elmeOrder.getPayMoney(), hongBao.getMoney(), hongBao.getState());
|
| | | |
| | | } else {// 订单存在
|
| | | HongBaoV2 oldHongBao = hongBaoV2Service.selectByPrimaryKey(map.getHongBao().getId());
|
| | | if (oldHongBao == null)
|
| | |
| | | update.setPreGetTime(hongBao.getPreGetTime());
|
| | | update.setUpdateTime(new Date());
|
| | | hongBaoV2Service.updateByPrimaryKeySelective(update);
|
| | | // 发送消息
|
| | | userOrderMsgNotificationService.orderElmeStateChanged(oldHongBao.getUserInfo().getId(),
|
| | | elmeOrder.getOrderId(), Constant.SOURCE_TYPE_ELME, elmeOrder.getPayMoney(), hongBao.getMoney(),
|
| | | hongBao.getState());
|
| | | |
| | | }
|
| | | }
|
| | |
|