|
|
@@ -368,14 +368,16 @@ public class WxCUserTagsServiceHelper{ |
|
|
int count = 0; |
|
|
int count = 0; |
|
|
if(cardSpendCountList.size() > 0) { |
|
|
if(cardSpendCountList.size() > 0) { |
|
|
for (Map<String, Object> cardSpendCount : cardSpendCountList) { |
|
|
for (Map<String, Object> cardSpendCount : cardSpendCountList) { |
|
|
if (cardSpendCount.get("business_id").equals(b.getId().toString())) { |
|
|
|
|
|
|
|
|
if (cardSpendCount.get("business_id") != null |
|
|
|
|
|
&& cardSpendCount.get("business_id").equals(b.getId().toString())) { |
|
|
count += (Integer) cardSpendCount.get("bu_count"); |
|
|
count += (Integer) cardSpendCount.get("bu_count"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(cardOrderCountList.size() > 0) { |
|
|
if(cardOrderCountList.size() > 0) { |
|
|
for (Map<String, Object> cardOrderCount : cardOrderCountList) { |
|
|
for (Map<String, Object> cardOrderCount : cardOrderCountList) { |
|
|
if (cardOrderCount.get("business").equals(b.getId().toString())) { |
|
|
|
|
|
|
|
|
if (cardOrderCount.get("business") != null |
|
|
|
|
|
&& cardOrderCount.get("business").equals(b.getId().toString())) { |
|
|
count += (Integer) cardOrderCount.get("bu_count"); |
|
|
count += (Integer) cardOrderCount.get("bu_count"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|