|
|
|
@@ -440,14 +440,16 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService { |
|
|
|
int count = 0; |
|
|
|
if(cardSpendCountList.size() > 0) { |
|
|
|
for (Map<String, Object> cardSpendCount : cardSpendCountList) { |
|
|
|
if (cardSpendCount.get("subBusinessId").equals(sb.getId().toString())) { |
|
|
|
Long subBusinessId = (Long)cardSpendCount.get("subBusinessId"); |
|
|
|
if (subBusinessId != null && subBusinessId.equals(sb.getId())) { |
|
|
|
count += (Integer) cardSpendCount.get("buCount"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(cardOrderCountList.size() > 0) { |
|
|
|
for (Map<String, Object> cardOrderCount : cardOrderCountList) { |
|
|
|
if (cardOrderCount.get("subBusiness").equals(sb.getId().toString())) { |
|
|
|
Long subBusinessId = (Long)cardOrderCount.get("subBusiness"); |
|
|
|
if (subBusinessId != null && subBusinessId.equals(sb.getId())) { |
|
|
|
count += (Integer) cardOrderCount.get("buCount"); |
|
|
|
} |
|
|
|
} |
|
|
|
|