This commit is contained in:
齐天大圣 2024-03-08 15:17:08 +08:00
parent 1b0c493806
commit cb675d3445

View File

@ -209,9 +209,9 @@ public class CardFavorableServiceImpl extends ServiceImpl<CardFavorableMapper, C
if (cardFavorableDTO.getIsonline().equals("1")){ if (cardFavorableDTO.getIsonline().equals("1")){
cardFavorable.setStatus("1"); cardFavorable.setStatus("1");
} }
if (cardFavorableDTO.getType().equals("0")){ if (StringUtils.isNotEmpty(cardFavorableDTO.getType()) && cardFavorableDTO.getType().equals("0")){
cardFavorable.setCardDetail(""+cardFavorableDTO.getSatisfiedAmount()+""+cardFavorableDTO.getDiscountAmount()+""); cardFavorable.setCardDetail(""+cardFavorableDTO.getSatisfiedAmount()+""+cardFavorableDTO.getDiscountAmount()+"");
}else { }else if (StringUtils.isNotEmpty(cardFavorableDTO.getType()) &&cardFavorableDTO.getType().equals("1")){
cardFavorable.setCardDetail(""+cardFavorableDTO.getSatisfiedAmount()+""+cardFavorableDTO.getSpecialDiscount()+""); cardFavorable.setCardDetail(""+cardFavorableDTO.getSatisfiedAmount()+""+cardFavorableDTO.getSpecialDiscount()+"");
} }
cardFavorable.setInstruction("请到到店使用!"); cardFavorable.setInstruction("请到到店使用!");