Преглед изворни кода

fix business

release_toaliyun_real
lin пре 3 година
родитељ
комит
0f46775347
1 измењених фајлова са 5 додато и 1 уклоњено
  1. +5
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java

+ 5
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java Прегледај датотеку

@@ -1,5 +1,6 @@
package com.iformall.service.impl; package com.iformall.service.impl;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.iformall.common.ErrorCode; import com.iformall.common.ErrorCode;
@@ -148,6 +149,9 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
childsJsonArray.add(businessRuleMap.get(businessId)); childsJsonArray.add(businessRuleMap.get(businessId));
} }
JSONArray originalJSONArray = JSONArray.parseArray(scoreRules); JSONArray originalJSONArray = JSONArray.parseArray(scoreRules);
if (null != businessObject) {
originalJSONArray.remove(businessObject);
}
JSONObject newJSONObject = new JSONObject(); JSONObject newJSONObject = new JSONObject();
newJSONObject.put("id",EnumScoreType.CONSUMPTION.getCode()); newJSONObject.put("id",EnumScoreType.CONSUMPTION.getCode());
newJSONObject.put("childs",childsJsonArray); newJSONObject.put("childs",childsJsonArray);
@@ -156,7 +160,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
} }
return scoreRules; return scoreRules;
} }
@Override @Override
public WxScoreRules getCreditRules(String tenantId) { public WxScoreRules getCreditRules(String tenantId) {
// String tenantId = ""; // String tenantId = "";


Loading…
Откажи
Сачувај