Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cloud
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-hook
gic-cloud
Commits
22be29c7
Commit
22be29c7
authored
Sep 24, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取数平台调整
parent
c2ac2e06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+3
-1
FreeQueryServiceImpl.java
...ic/cloud/data/hook/service/impl/FreeQueryServiceImpl.java
+5
-1
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
22be29c7
...
...
@@ -911,6 +911,8 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
new
BasicThreadFactory
.
Builder
().
namingPattern
(
"applyTimer-%d"
).
daemon
(
true
).
build
());
public
void
runApplyTask
(
Integer
interval
){
Config
config
=
ConfigService
.
getConfig
(
"application"
);
final
String
url
=
config
.
getProperty
(
"applyUrl"
,
""
);
applyService
.
scheduleAtFixedRate
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -920,7 +922,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
//log.debug("自助指标待审批任务状态变更", JSON.toJSONString(task));
if
(!
task
.
getApplyId
().
equals
(
""
))
{
// String applyStatusText = HttpUtils.doGet("http://www.gicdev.com/api-admin/apply-info?type=2&applyId=" + task.getApplyId());
String
applyStatusText
=
HttpUtils
.
doGet
(
"http://hope.demogic.com/api-admin/apply-info?type=2&applyId="
+
task
.
getApplyId
());
String
applyStatusText
=
HttpUtils
.
doGet
(
url
+
task
.
getApplyId
());
log
.
debug
(
"runApplyTask.run"
,
"查询自助指标查询 "
+
task
.
getId
()
+
" 审核状态码"
+
applyStatusText
);
if
(
StringUtils
.
isBlank
(
applyStatusText
)){
break
;
...
...
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FreeQueryServiceImpl.java
View file @
22be29c7
...
...
@@ -2,6 +2,8 @@ package com.gic.cloud.data.hook.service.impl;
import
cn.medubi.client.utils.LogPak
;
import
com.alibaba.fastjson.JSON
;
import
com.ctrip.framework.apollo.Config
;
import
com.ctrip.framework.apollo.ConfigService
;
import
com.gic.cloud.data.hook.api.dto.*
;
import
com.gic.cloud.data.hook.api.dto.DataDesensiType
;
import
com.gic.cloud.data.hook.api.entity.*
;
...
...
@@ -545,6 +547,8 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
* @param interval
*/
private
void
runApplyTask
(
Integer
interval
)
{
Config
config
=
ConfigService
.
getConfig
(
"application"
);
final
String
url
=
config
.
getProperty
(
"applyUrl"
,
""
);
this
.
freeApplyService
.
scheduleAtFixedRate
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
@@ -554,7 +558,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
log
.
debug
(
"自定义查询任务审批状态变更:"
,
JSON
.
toJSONString
(
task
));
if
(!
task
.
getApplyId
().
equals
(
""
))
{
// String applyStatusText = HttpUtils.doGet("http://www.gicdev.com/api-admin/apply-info?type=2&applyId=" + task.getApplyId());
String
applyStatusText
=
HttpUtils
.
doGet
(
"http://hope.demogic.com/api-admin/apply-info?type=2&applyId="
+
task
.
getApplyId
());
String
applyStatusText
=
HttpUtils
.
doGet
(
url
+
task
.
getApplyId
());
log
.
debug
(
"runApplyTask.run"
,
"查询自助指标查询 "
+
task
.
getId
()
+
" 审核状态码"
+
applyStatusText
);
if
(
StringUtils
.
isBlank
(
applyStatusText
)){
break
;
...
...
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