Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-api
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-王博
finance-api
Commits
584c8cbf
Commit
584c8cbf
authored
Mar 01, 2017
by
Data-王博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
湖北消金 - 回盘文件加了开关,可以设置是否开启回盘推送
parent
f38bed36
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
6 deletions
+19
-6
InitRunner.java
src/main/java/cn/quantgroup/financial/init/InitRunner.java
+6
-0
ScheduledJudgeServiceImpl.java
...financial/service/sys/impl/ScheduledJudgeServiceImpl.java
+2
-2
financial_api.properties
src/main/resources/config/local/financial_api.properties
+1
-1
financial_api.properties
src/main/resources/config/release/financial_api.properties
+1
-1
financial_api.properties
src/main/resources/config/test/financial_api.properties
+1
-1
HuBeiServiceTest.java
...ava/cn/quantgroup/financial/service/HuBeiServiceTest.java
+8
-1
No files found.
src/main/java/cn/quantgroup/financial/init/InitRunner.java
View file @
584c8cbf
...
...
@@ -32,5 +32,11 @@ public class InitRunner implements CommandLineRunner {
logger
.
error
(
"finance api config-------------------scheduled task is closed"
);
}
if
(
scheduledJudgeService
.
isOpenHuBeiRequest
()){
logger
.
error
(
"finance api config-------------------HuBei push request is opened"
);
}
else
{
logger
.
error
(
"finance api config-------------------HuBei push request is closed"
);
}
}
}
src/main/java/cn/quantgroup/financial/service/sys/impl/ScheduledJudgeServiceImpl.java
View file @
584c8cbf
...
...
@@ -53,11 +53,11 @@ public class ScheduledJudgeServiceImpl implements IScheduledJudgeService {
}
logger
.
info
(
"trigger name={}, value={}"
,
hubeiRequestTriggerName
,
trigger
);
if
(!
StringUtils
.
isEmpty
(
trigger
)&&
"2"
.
equals
(
trigger
)){
return
fals
e
;
return
tru
e
;
}
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
());
}
return
tru
e
;
return
fals
e
;
}
}
src/main/resources/config/local/financial_api.properties
View file @
584c8cbf
...
...
@@ -4,5 +4,5 @@ hubei.history.filepath=E:/hubeitest/
log_dir
=
quant_group
#定时任务环境变量的名 系统变量为2表示关闭定时任务 其他为开启
scheduled_trigger
=
scheduled_trigger
#湖北请求开关 系统变量为2表示
关闭请求 其他为开启
#湖北请求开关 系统变量为2表示
开启请求 其他为关闭
hubei.request.triggername
=
hb_request_trigger
\ No newline at end of file
src/main/resources/config/release/financial_api.properties
View file @
584c8cbf
...
...
@@ -4,5 +4,5 @@ hubei.history.filepath=/vpants/hubeifiles/
log_dir
=
quant_group
#定时任务环境变量的名 系统变量为2表示关闭定时任务 其他为开启
scheduled_trigger
=
scheduled_trigger
#湖北请求开关 系统变量为2表示
关闭请求 其他为开启
#湖北请求开关 系统变量为2表示
开启请求 其他为关闭
hubei.request.triggername
=
hb_request_trigger
\ No newline at end of file
src/main/resources/config/test/financial_api.properties
View file @
584c8cbf
...
...
@@ -4,5 +4,5 @@ hubei.history.filepath=/home/results/
log_dir
=
quant_group
#定时任务环境变量的名 系统变量为2表示关闭定时任务 其他为开启
scheduled_trigger
=
scheduled_trigger
#湖北请求开关 系统变量为2表示
关闭请求 其他为开启
#湖北请求开关 系统变量为2表示
开启请求 其他为关闭
hubei.request.triggername
=
hb_request_trigger
\ No newline at end of file
src/test/java/cn/quantgroup/financial/service/HuBeiServiceTest.java
View file @
584c8cbf
...
...
@@ -60,7 +60,14 @@ public class HuBeiServiceTest {
*/
@Test
public
void
testReturnDebitDisc
(){
huBeiService
.
handleDiscData
(
HubeiCFCDataType
.
RETURN_BATCH_DEBIT
,
null
,
188L
,
new
Integer
(
1
).
byteValue
());
huBeiService
.
handleDiscData
(
HubeiCFCDataType
.
RETURN_BATCH_DEBIT
,
null
,
100L
,
new
Integer
(
1
).
byteValue
());
synchronized
(
lock
)
{
try
{
lock
.
wait
();
}
catch
(
InterruptedException
e
)
{
logger
.
error
(
e
.
getMessage
(),
e
);
}
}
}
/**
...
...
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