|
@@ -204,13 +204,12 @@ public class OrdersPayService { |
|
@@ -204,13 +204,12 @@ public class OrdersPayService { |
204
|
|
204
|
|
205
|
|
205
|
|
206
|
public OrdersPay getOrderPayBySkup(Integer skup){
|
206
|
public OrdersPay getOrderPayBySkup(Integer skup){
|
207
|
- ArrayList<Integer> skupList = Lists.newArrayList(skup);
|
|
|
208
|
- List<BuyerOrderGoods> bogs= buyerOrderGoodsMapper.selectBySkups(skupList);
|
207
|
+ List<BuyerOrderGoods> bogs= buyerOrderGoodsMapper.selectOrderBySkups(skup);
|
209
|
if(CollectionUtils.isEmpty(bogs)){
|
208
|
if(CollectionUtils.isEmpty(bogs)){
|
210
|
logger.warn("getOrderPayBySkup empty list ,skup {}",skup);
|
209
|
logger.warn("getOrderPayBySkup empty list ,skup {}",skup);
|
211
|
return null;
|
210
|
return null;
|
212
|
}
|
211
|
}
|
213
|
- BuyerOrderGoods bog = bogs.get(0);
|
212
|
+ BuyerOrderGoods bog = bogs.get(bogs.size() - 1);
|
214
|
return ordersPayMapper.selectOrdersPay(bog.getOrderCode(), bog.getUid());
|
213
|
return ordersPayMapper.selectOrdersPay(bog.getOrderCode(), bog.getUid());
|
215
|
}
|
214
|
}
|
216
|
|
215
|
|