bug
This commit is contained in:
parent
1b0c493806
commit
cb675d3445
@ -209,9 +209,9 @@ public class CardFavorableServiceImpl extends ServiceImpl<CardFavorableMapper, C
|
||||
if (cardFavorableDTO.getIsonline().equals("1")){
|
||||
cardFavorable.setStatus("1");
|
||||
}
|
||||
if (cardFavorableDTO.getType().equals("0")){
|
||||
if (StringUtils.isNotEmpty(cardFavorableDTO.getType()) && cardFavorableDTO.getType().equals("0")){
|
||||
cardFavorable.setCardDetail("满"+cardFavorableDTO.getSatisfiedAmount()+"减"+cardFavorableDTO.getDiscountAmount()+"元");
|
||||
}else {
|
||||
}else if (StringUtils.isNotEmpty(cardFavorableDTO.getType()) &&cardFavorableDTO.getType().equals("1")){
|
||||
cardFavorable.setCardDetail("满"+cardFavorableDTO.getSatisfiedAmount()+"打"+cardFavorableDTO.getSpecialDiscount()+"折");
|
||||
}
|
||||
cardFavorable.setInstruction("请到到店使用!");
|
||||
|
Loading…
Reference in New Issue
Block a user