| | |
| | | @Resource
|
| | | private RedisManager redisManager;
|
| | |
|
| | | // @Resource
|
| | | // private LostOrderService lostOrderService;
|
| | |
|
| | | @Override
|
| | | @Transactional
|
| | | public void addPidOrderFromTaoBao(Map<String, List<PidOrder>> map) {
|
| | |
| | | while (its.hasNext()) {
|
| | | String orderId = its.next();
|
| | | // 订单锁定
|
| | | // if (isRedisLockOrder(orderId))
|
| | | // continue;
|
| | | // redisLockOrder(orderId);
|
| | | // if (isRedisLockOrder(orderId))
|
| | | // continue;
|
| | | // redisLockOrder(orderId);
|
| | | doPidOrder(orderId);
|
| | | // redisUnlockOrder(orderId);
|
| | | // 处理订单找回
|
| | | // lostOrderService.processSuceess(orderId);
|
| | | // redisUnlockOrder(orderId);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | HongBao.TYPE_SHARE_GOODS, HongBao.STATE_BUKELINGQU, new Date().getTime(),
|
| | | new Date().getTime(), 0, "192.168.1.1", "系统添加");
|
| | | hongBao.setOrderId(order.getOrderId());
|
| | | hongBao.setPayMoney(order.getPayMoney());
|
| | | if ("订单结算".equalsIgnoreCase(order.getState()))
|
| | | hongBao.setPayMoney(order.getFinalMoney());
|
| | | else
|
| | | hongBao.setPayMoney(order.getPayMoney());
|
| | | if (order.getBalanceTime() != null)
|
| | | hongBao.setBalanceTime(order.getBalanceTime());
|
| | |
|