|
|
|
@@ -143,7 +143,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService { |
|
|
|
|
|
|
|
if (businessRuleMap.size() > 0 ) { |
|
|
|
JSONArray childsJsonArray = new JSONArray(); |
|
|
|
for (Iterator<Integer> it = (Iterator) businessRuleMap.keySet().iterator();it.hasNext();) { |
|
|
|
for (Iterator<Integer> it = businessRuleMap.keySet().iterator();it.hasNext();) { |
|
|
|
Integer businessId = it.next(); |
|
|
|
childsJsonArray.add(businessRuleMap.get(businessId)); |
|
|
|
} |
|
|
|
@@ -151,6 +151,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService { |
|
|
|
JSONObject newJSONObject = new JSONObject(); |
|
|
|
newJSONObject.put("id",EnumScoreType.CONSUMPTION.getCode()); |
|
|
|
newJSONObject.put("childs",childsJsonArray); |
|
|
|
originalJSONArray.add(newJSONObject); |
|
|
|
return originalJSONArray.toJSONString(); |
|
|
|
} |
|
|
|
return scoreRules; |
|
|
|
|