bug
This commit is contained in:
parent
3ef9ad404b
commit
bd213aa77b
@ -487,7 +487,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
for (ActiveDiscountPayVO activeDiscountPayVO : activeDiscountVOList) {
|
||||
if (activeDiscountPayVO.getParticipationCondition().equals("1")){
|
||||
for (CardFavorableRecordVO cardFavorableRecordVO : canUserCardFavorableList) {
|
||||
if(cardFavorableRecordVO.getType().equals("2") && !cardFavorableRecordVO.getExclusiveFunction().equals("0")){
|
||||
if(cardFavorableRecordVO.getExclusiveFunction().equals("2") && !cardFavorableRecordVO.getExclusiveFunction().equals("0")){
|
||||
ActiveDiscountPayVO activeDiscountPayVO1 = new ActiveDiscountPayVO();
|
||||
BeanUtils.copyProperties(activeDiscountPayVO,activeDiscountPayVO1);
|
||||
activeDiscountPayVO1.setCouponId(cardFavorableRecordVO.getId());
|
||||
@ -500,11 +500,12 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
activeDiscountPayVO1.setCardFavorableAmount(BigDecimal.valueOf(cardFavorableRecordVO.getDiscountAmount()));
|
||||
activeDiscountPayVO1.setCardFavorableInfo(cardFavorableRecordVO.getCardFavorableName());
|
||||
cardAndDisPays.add(activeDiscountPayVO1);
|
||||
}else if( !cardFavorableRecordVO.getExclusiveFunction().equals("0")){
|
||||
}else if( cardFavorableRecordVO.getExclusiveFunction().equals("0")){
|
||||
ActiveDiscountPayVO activeDiscountPayVO1 = new ActiveDiscountPayVO();
|
||||
BeanUtils.copyProperties(activeDiscountPayVO,activeDiscountPayVO1);
|
||||
String[] split = cardFavorableRecordVO.getOilType().split(",");
|
||||
if(paymentActiveDTO.getOilId().equals(split)){
|
||||
for (String oilId : split) {
|
||||
if((paymentActiveDTO.getOilId()).toString().equals(oilId)){
|
||||
activeDiscountPayVO1.setCouponId(cardFavorableRecordVO.getId());
|
||||
double discountAmount = cardFavorableRecordVO.getDiscountAmount();
|
||||
activeDiscountPayVO1.setActiveDiscount(activeDiscountPayVO1.getDiscount());
|
||||
@ -516,6 +517,8 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
cardAndDisPays.add(activeDiscountPayVO1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -536,11 +539,12 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
activeDiscountPayVO1.setCardFavorableAmount(BigDecimal.valueOf(cardFavorableRecordVO.getDiscountAmount()));
|
||||
activeDiscountPayVO1.setCardFavorableInfo(cardFavorableRecordVO.getCardFavorableName());
|
||||
cardAndComPays.add(activeDiscountPayVO1);
|
||||
}else if (!cardFavorableRecordVO.getExclusiveFunction().equals("0")){
|
||||
}else if (cardFavorableRecordVO.getExclusiveFunction().equals("0")){
|
||||
ActiveDiscountPayVO activeDiscountPayVO1 = new ActiveDiscountPayVO();
|
||||
BeanUtils.copyProperties(activeDiscountPayVO,activeDiscountPayVO1);
|
||||
String[] split = cardFavorableRecordVO.getOilType().split(",");
|
||||
if(paymentActiveDTO.getOilId().equals(split)){
|
||||
for (String oilId : split) {
|
||||
if((paymentActiveDTO.getOilId()).toString().equals(oilId)){
|
||||
activeDiscountPayVO1.setCouponId(cardFavorableRecordVO.getId());
|
||||
double discountAmount = cardFavorableRecordVO.getDiscountAmount();
|
||||
activeDiscountPayVO1.setActiveDiscount(activeDiscountPayVO1.getDiscount());
|
||||
@ -552,6 +556,8 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService {
|
||||
cardAndComPays.add(activeDiscountPayVO1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user