Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
asset-distribution
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
asset-distribution
Commits
681fbbf3
Commit
681fbbf3
authored
Jul 26, 2019
by
liwenbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉debug内容
parent
89aebf3b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
AlarmServiceImpl.java
...set/distribution/service/alarm/impl/AlarmServiceImpl.java
+0
-1
AssetAttributeServiceImpl.java
...ibution/service/asset/impl/AssetAttributeServiceImpl.java
+14
-15
No files found.
src/main/java/com/quantgroup/asset/distribution/service/alarm/impl/AlarmServiceImpl.java
View file @
681fbbf3
...
@@ -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
);
...
...
src/main/java/com/quantgroup/asset/distribution/service/asset/impl/AssetAttributeServiceImpl.java
View file @
681fbbf3
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment