Commit a982b997 by guojuxing

会员卡主卡名称修复

parent e21ccb40
......@@ -141,13 +141,16 @@ public class AppletDecorationConfigApiServiceImpl implements AppletDecorationCon
}
//添加主卡
AppletCardRelationDTO mainCard = mainCardResult.getResult();
result.add(new AppletMainCardDTO().setCardConfigId(mainCard.getCardConfigId())
.setCardName(mainCard.getCardName()).setMainCard(true));
String mainCardId = mainCard.getCardConfigId().toString();
List<AppletCardDTO> appletCardList = appletCardResult.getResult();
for (AppletCardDTO cardDTO : appletCardList) {
List<AppletCardDTO> subList = cardDTO.getSubList();
if (cardDTO.getCardConfigId().toString().equals(mainCardId)) {
//为了获取名称
result.add(new AppletMainCardDTO().setCardConfigId(mainCard.getCardConfigId())
.setCardName(cardDTO.getCardName()).setMainCard(true));
}
if (CollectionUtils.isNotEmpty(subList)) {
for (AppletCardDTO cardDTO1 : subList) {
if (cardDTO1.getCardConfigId().toString().equals(mainCardId)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment