@ -282,8 +282,8 @@ public class IdcServiceImpl implements IdcService {
if(!StringUtils.isEmpty(updateTimeColumn)){
sqlWhere+=" "+updateTimeColumn+">= cast('" +lastUpdateTime+"' as datetime)";// and date_add(cast('"+DateUtil.formatDate(nowUpdateTime, "yyyy-MM-dd HH:mm:ss")+"' as datetime),INTERVAL 1 day)";
sqlWhere+=" and not exists (select fkId from idc_record where type='" + tnames[2] + "' and fkId=" + tnames[2] + "." + keyColumn + " and createTime>date_sub(now(),interval 15 MINUTE))";
sqlWhere+=" "+updateTimeColumn+" between cast('" +lastUpdateTime+"' as datetime) and cast('"+DateUtil.formatDate(nowUpdateTime,"yyyy-MM-dd HH:mm:ss")+"' as datetime)";
//sqlWhere += " and not exists (select fkId from idc_record where type='" + tnames[2] + "' and fkId=" + tnames[2] + "." + keyColumn + " and createTime>date_sub(now(),interval 15 MINUTE))";
}else{
sqlWhere="not exists (select fkId from idc_record where type='"+tnames[2]+"' and fkId="+tnames[2]+"."+keyColumn+")";
map.put("isEnd","1");
@ -1023,8 +1023,9 @@ public class IdcServiceImpl implements IdcService {