|
@ -103,9 +103,11 @@ public class JobService {
|
|
|
params.put("jobConfig", flJobConfigVO.getId());
|
|
|
//表里设置的增量查询类型和增量查询初始值,如果值没有配置,以当前时间为准
|
|
|
if(!StringUtils.isEmpty(flJobConfigVO.getSqlFieldValue())){
|
|
|
params.put(flJobConfigVO.getSqlField(),flJobConfigVO.getSqlFieldValue());
|
|
|
params.put("sqlFiledValue",flJobConfigVO.getSqlFieldValue());
|
|
|
//params.put(flJobConfigVO.getSqlField(),flJobConfigVO.getSqlFieldValue());
|
|
|
}else{
|
|
|
params.put(flJobConfigVO.getSqlField(), DateFormatUtils.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
params.put("sqlFiledValue", DateFormatUtils.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
//params.put(flJobConfigVO.getSqlField(), DateFormatUtils.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
}
|
|
|
params.put("sqlFiledCondition", ">");
|
|
|
if (!StringUtils.isEmpty(FLJobConfig.getJobClass())) {
|
|
@ -116,7 +118,7 @@ public class JobService {
|
|
|
}
|
|
|
|
|
|
public void startNowById(String id) throws Exception {
|
|
|
FLJobConfig FLJobConfig = flJobConfigDao.findOne(id);
|
|
|
FLJobConfig FLJobConfig = flJobConfigDao.findById(Long.valueOf(id));
|
|
|
|
|
|
FLJobConfig flJobConfigVO = new FLJobConfig();
|
|
|
BeanUtils.copyProperties(FLJobConfig, flJobConfigVO);
|
|
@ -124,9 +126,11 @@ public class JobService {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
params.put("jobConfig", flJobConfigVO.getId());
|
|
|
if(!StringUtils.isEmpty(flJobConfigVO.getSqlFieldValue())){
|
|
|
params.put(flJobConfigVO.getSqlField(),flJobConfigVO.getSqlFieldValue());
|
|
|
params.put("sqlFiledValue",flJobConfigVO.getSqlFieldValue());
|
|
|
//params.put(flJobConfigVO.getSqlField(),flJobConfigVO.getSqlFieldValue());
|
|
|
}else{
|
|
|
params.put(flJobConfigVO.getSqlField(), DateFormatUtils.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
params.put("sqlFiledValue", DateFormatUtils.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
//params.put(flJobConfigVO.getSqlField(), DateFormatUtils.format(new Date(),"yyyy-MM-dd HH:mm:ss"));
|
|
|
}
|
|
|
params.put("sqlFiledCondition", ">");
|
|
|
//往quartz框架添加任务
|