| | |
| | | */
|
| | | public static MsgOrderDetail createFanLiOrder(Long uid, String orderId, int goodsCount, int orderState,
|
| | | BigDecimal payMoney, BigDecimal money, String beiZhu) {
|
| | | if (payMoney == null || money == null || uid == null)
|
| | | if (uid == null)
|
| | | return null;
|
| | | MsgOrderDetail detail = new MsgOrderDetail();
|
| | | detail.setBeiZhu(beiZhu);
|
| | |
| | | return detail;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 订单找回
|
| | | * |
| | | * @param uid
|
| | | * @param orderId
|
| | | * -订单号
|
| | | * @param isSuccess-是否找回成功
|
| | | * @param payMoney
|
| | | * @param orderType
|
| | | * 1-淘宝订单 3-拼多多订单 4-京东订单
|
| | | * @param beiZhu
|
| | | * @return
|
| | | */
|
| | | public static MsgOrderDetail createFoundOrder(Long uid, String orderId, boolean isSuccess, BigDecimal payMoney,
|
| | | int orderType, Date happendDate, String beiZhu) {
|
| | | if (orderId == null || uid == null)
|
| | | return null;
|
| | | MsgOrderDetail detail = new MsgOrderDetail();
|
| | | detail.setBeiZhu(beiZhu);
|
| | | detail.setCreateTime(new Date());
|
| | | detail.setOrderId((orderType == 1 ? "【淘宝订单】" : "") + orderId);
|
| | | detail.setPayMoney(payMoney);
|
| | | detail.setRead(false);
|
| | | detail.setState(isSuccess ? 1 : 0);
|
| | | detail.setType(MsgTypeOrderTypeEnum.found);
|
| | | detail.setUser(new UserInfo(uid));
|
| | | detail.setHappendDate(happendDate);
|
| | | return detail;
|
| | | }
|
| | |
|
| | | }
|