Commit 681fbbf3 authored by liwenbin's avatar liwenbin

去掉debug内容

parent 89aebf3b
...@@ -34,7 +34,6 @@ public class AlarmServiceImpl implements IAlarmService{ ...@@ -34,7 +34,6 @@ public class AlarmServiceImpl implements IAlarmService{
@Override @Override
public void dingtalkAlarm(String alarmLevel, String msgTitle, String msgContent) { public void dingtalkAlarm(String alarmLevel, String msgTitle, String msgContent) {
try { try {
// TODO
if (isDebug) { return; } if (isDebug) { return; }
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
params.put("webhook", ROBOT_WEB_HOOK); params.put("webhook", ROBOT_WEB_HOOK);
......
...@@ -77,21 +77,20 @@ public class AssetAttributeServiceImpl implements IAssetAttributeService { ...@@ -77,21 +77,20 @@ public class AssetAttributeServiceImpl implements IAssetAttributeService {
* @return * @return
*/ */
public Map<String, Object> getDecAttributeValue(Set<String> decKeys, AssetForm assetForm) { public Map<String, Object> getDecAttributeValue(Set<String> decKeys, AssetForm assetForm) {
// TODO if (CollectionUtils.isEmpty(decKeys)) { return MapUtils.EMPTY_MAP; }
// if (CollectionUtils.isEmpty(decKeys)) { return MapUtils.EMPTY_MAP; } String result = httpService.post(ruleEngineURL + "/feature/get", new HashMap<String, String>(){{
// String result = httpService.post(ruleEngineURL + "/feature/get", new HashMap<String, String>(){{ put("uuid", assetForm.getUuid());
// put("uuid", assetForm.getUuid()); put("bizChannel", assetForm.getBizChannel());
// put("bizChannel", assetForm.getBizChannel()); put("bizNo", assetForm.getBizNo());
// put("bizNo", assetForm.getBizNo()); put("bizType", assetForm.getBizType());
// put("bizType", assetForm.getBizType()); put("keys", StringUtils.join(decKeys, ","));
// put("keys", StringUtils.join(decKeys, ",")); }});
// }}); JSONObject resultJSON = null;
// JSONObject resultJSON = null; QGPreconditions.checkArgument(StringUtils.isNotEmpty(result) && (resultJSON = JSON.parseObject(result)).getInteger("code") == 0, QGExceptionType.GET_DEC_ATTRIBUTE_VALUE_ERROR, assetForm.getUuid(), JSON.toJSONString(decKeys));
// QGPreconditions.checkArgument(StringUtils.isNotEmpty(result) && (resultJSON = JSON.parseObject(result)).getInteger("code") == 0, QGExceptionType.GET_DEC_ATTRIBUTE_VALUE_ERROR, assetForm.getUuid(), JSON.toJSONString(decKeys)); Map<String, Object > data = resultJSON.getJSONObject("body");
// Map<String, Object > data = resultJSON.getJSONObject("body"); log.info("决策特征属性获取完成, uuid : {}, bizChannel : {}, bizNo : {}, bizType : {}, data : {}", assetForm.getUuid(), assetForm.getBizChannel(), assetForm.getBizNo(), assetForm.getBizType(), JSON.toJSONString(data));
// log.info("决策特征属性获取完成, uuid : {}, bizChannel : {}, bizNo : {}, bizType : {}, data : {}", assetForm.getUuid(), assetForm.getBizChannel(), assetForm.getBizNo(), assetForm.getBizType(), JSON.toJSONString(data)); // Map<String, Object> data = new HashMap<>();
Map<String, Object> data = new HashMap<>(); // data.put(AssetAttributeConstants.USER_LOAN_TYPE, 1);
data.put(AssetAttributeConstants.USER_LOAN_TYPE, 1);
return data; return data;
} }
......
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