...
|
...
|
@@ -98,11 +98,21 @@ public class LiveEventsListener implements ApplicationListener<QiniuLiveRecordEv |
|
|
if (record.getOrderType().equals(OrderTypeEnum.ORDERTYPE_BUYERORDER.getCode())) {
|
|
|
List<SellerOrderGoods> sellerOrderGoodses = sellerOrderGoodsMapper.selectByIds(Lists.newArrayList(record.getSkup()));
|
|
|
if (CollectionUtils.isEmpty(sellerOrderGoodses)) {
|
|
|
return;
|
|
|
List<AppraiseOrderStorage> appraiseOrderStorages
|
|
|
= appraiseOrderStorageMapper.selectByOrderCodes(Lists.newArrayList(String.valueOf(record.getOrderCode())));
|
|
|
record.setStorageId(CollectionUtils.isEmpty(appraiseOrderStorages) ? 0 : appraiseOrderStorages.get(0).getStorageId());
|
|
|
AppraiseOrderGoods appraiseOrderGoods = appraiseOrderGoodsService.selectByOrderCode(record.getOrderCode());
|
|
|
record.setProductId(null == appraiseOrderGoods ? 0 : appraiseOrderGoods.getProductId());
|
|
|
|
|
|
AppraiseOrder appraiseOrder = appraiseOrderMapper.selectByOrderCode(String.valueOf(record.getOrderCode()));
|
|
|
record.setAppraiseResult(getAppraiseResult(appraiseOrder));
|
|
|
|
|
|
} else {
|
|
|
SellerOrderGoods sellerOrderGoods = sellerOrderGoodses.get(0);
|
|
|
record.setStorageId(sellerOrderGoods.getStorageId());
|
|
|
record.setProductId(sellerOrderGoods.getProductId());
|
|
|
}
|
|
|
SellerOrderGoods sellerOrderGoods = sellerOrderGoodses.get(0);
|
|
|
record.setStorageId(sellerOrderGoods.getStorageId());
|
|
|
record.setProductId(sellerOrderGoods.getProductId());
|
|
|
|
|
|
} else { // 鉴定订单
|
|
|
|
|
|
List<AppraiseOrderStorage> appraiseOrderStorages
|
...
|
...
|
|