Commit 30913f82 by shiwenbo

提交系统配置的引用

parent 39c4e697
...@@ -26,7 +26,6 @@ public class AdvancePaymentBalanceSumSchedulerTask implements Task { ...@@ -26,7 +26,6 @@ public class AdvancePaymentBalanceSumSchedulerTask implements Task {
@Autowired @Autowired
public AdvancePaymentBalanceSumService advancePaymentBalanceSumService; public AdvancePaymentBalanceSumService advancePaymentBalanceSumService;
@Autowired
public SysConfigService sysConfigService; public SysConfigService sysConfigService;
@Override @Override
...@@ -48,6 +47,7 @@ public class AdvancePaymentBalanceSumSchedulerTask implements Task { ...@@ -48,6 +47,7 @@ public class AdvancePaymentBalanceSumSchedulerTask implements Task {
} }
private JSONObject getConfig() { private JSONObject getConfig() {
sysConfigService = Amino.getApplicationContext().getBean(SysConfigService.class);
Optional<SysConfig> optional = sysConfigService.get("bill", "billAnalyseConfig"); Optional<SysConfig> optional = sysConfigService.get("bill", "billAnalyseConfig");
if(optional.isPresent()){ if(optional.isPresent()){
return new JSONObject(optional.get().getValue().toString()); return new JSONObject(optional.get().getValue().toString());
......
...@@ -43,7 +43,7 @@ public class AdvancePaymentBalanceSumSchedulerTaskRegister implements ServiceIn ...@@ -43,7 +43,7 @@ public class AdvancePaymentBalanceSumSchedulerTaskRegister implements ServiceIn
//scheduleService.scheduleTask(taskDetail, "0 0 1/23 * * ? *"); //scheduleService.scheduleTask(taskDetail, "0 0 1/23 * * ? *");
//测试使用 没分钟执行一次 //测试使用 没分钟执行一次
//scheduleService.scheduleTask(taskDetail, "0 0/1 * * * ? *"); scheduleService.scheduleTask(taskDetail, "0 0/1 * * * ? *");
logger.info("预付款与结余汇总自动创建任务初始化成功!"); logger.info("预付款与结余汇总自动创建任务初始化成功!");
} }
} }
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