收银台
This commit is contained in:
parent
631df5ee81
commit
92f6691025
@ -216,8 +216,10 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
cardFavorableLambdaQueryWrapper.in(CardFavorable::getOilType,transferDTO.getOilName());
|
||||
cardFavorableLambdaQueryWrapper.le(CardFavorable::getSatisfiedAmount,transferDTO.getOilPrice() * transferDTO.getOilLiters());
|
||||
List<CardFavorable> list1 = cardFavorableService.list(cardFavorableLambdaQueryWrapper);
|
||||
BeanUtils.copyProperties(list1.get(0), exchangeFavorableVO);
|
||||
exchangeFavorableVOArrayList.add(exchangeFavorableVO);
|
||||
if (list1.size()>0){
|
||||
BeanUtils.copyProperties(list1.get(0), exchangeFavorableVO);
|
||||
exchangeFavorableVOArrayList.add(exchangeFavorableVO);
|
||||
}
|
||||
}
|
||||
return exchangeFavorableVOArrayList;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user