Commit 681fbbf3 authored by liwenbin's avatar liwenbin

去掉debug内容

parent 89aebf3b
......@@ -34,7 +34,6 @@ public class AlarmServiceImpl implements IAlarmService{
@Override
public void dingtalkAlarm(String alarmLevel, String msgTitle, String msgContent) {
try {
// TODO
if (isDebug) { return; }
Map<String, String> params = new HashMap<>();
params.put("webhook", ROBOT_WEB_HOOK);
......
......@@ -77,21 +77,20 @@ public class AssetAttributeServiceImpl implements IAssetAttributeService {
* @return
*/
public Map<String, Object> getDecAttributeValue(Set<String> decKeys, AssetForm assetForm) {
// TODO
// if (CollectionUtils.isEmpty(decKeys)) { return MapUtils.EMPTY_MAP; }
// String result = httpService.post(ruleEngineURL + "/feature/get", new HashMap<String, String>(){{
// put("uuid", assetForm.getUuid());
// put("bizChannel", assetForm.getBizChannel());
// put("bizNo", assetForm.getBizNo());
// put("bizType", assetForm.getBizType());
// put("keys", StringUtils.join(decKeys, ","));
// }});
// 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));
// 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));
Map<String, Object> data = new HashMap<>();
data.put(AssetAttributeConstants.USER_LOAN_TYPE, 1);
if (CollectionUtils.isEmpty(decKeys)) { return MapUtils.EMPTY_MAP; }
String result = httpService.post(ruleEngineURL + "/feature/get", new HashMap<String, String>(){{
put("uuid", assetForm.getUuid());
put("bizChannel", assetForm.getBizChannel());
put("bizNo", assetForm.getBizNo());
put("bizType", assetForm.getBizType());
put("keys", StringUtils.join(decKeys, ","));
}});
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));
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));
// Map<String, Object> data = new HashMap<>();
// data.put(AssetAttributeConstants.USER_LOAN_TYPE, 1);
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