Commit a968586c authored by wanghao's avatar wanghao

1 读取定时任务时间设置空字符串调整

parent 344043d7
package com.zehong.system.task;
import com.zehong.common.constant.RoboticArmConstans;
import com.zehong.common.utils.StringUtils;
import com.zehong.quartz.config.QuartzTaskMonitor;
import com.zehong.system.service.ISysConfigService;
import com.zehong.system.task.DeviceCommJob.DeviceComm501Device1Job;
......@@ -246,7 +247,7 @@ public class DeviceTaskScheduler {
String s = sysConfigService.directSelectConfigByKey(RoboticArmConstans.AGING_STAGE1_TIME);
int delayMin = 0;
if(s != null) {
if(StringUtils.isNotBlank(s)) {
delayMin = Integer.parseInt(s);
}
if(delayMin == 0) {
......@@ -302,7 +303,7 @@ public class DeviceTaskScheduler {
String s = sysConfigService.directSelectConfigByKey(RoboticArmConstans.AGING_STAGE2_TIME);
int delayMin = 0;
if(s != null) {
if(StringUtils.isNotBlank(s)) {
delayMin = Integer.parseInt(s);
}
if(delayMin == 0) {
......@@ -345,7 +346,7 @@ public class DeviceTaskScheduler {
String s = sysConfigService.directSelectConfigByKey(RoboticArmConstans.AGING_STAGE3_TIME);
int delayMin = 0;
if(s != null) {
if(StringUtils.isNotBlank(s)) {
delayMin = Integer.parseInt(s);
}
if(delayMin == 0) {
......
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