Commit 584c8cbf authored by Data-王博's avatar Data-王博

湖北消金 - 回盘文件加了开关,可以设置是否开启回盘推送

parent f38bed36
......@@ -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");
}
}
}
......@@ -53,11 +53,11 @@ public class ScheduledJudgeServiceImpl implements IScheduledJudgeService {
}
logger.info("trigger name={}, value={}",hubeiRequestTriggerName,trigger);
if(!StringUtils.isEmpty(trigger)&&"2".equals(trigger)){
return false;
return true;
}
} catch (Exception e) {
logger.error(e.getMessage());
}
return true;
return false;
}
}
......@@ -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
......@@ -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
......@@ -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
......@@ -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);
}
}
}
/**
......
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