From 1fa25691ecb43efafa2ff9a58583b1ec3ea5ec30 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 4 Apr 2023 07:06:31 +0800 Subject: [PATCH] =?UTF-8?q?updateTime=E5=A4=A7=E4=BA=8E=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=95=B0=E6=8D=AE=EF=BC=8C15=E5=88=86?= =?UTF-8?q?=E9=92=9F=E5=86=85=E9=83=A8=E9=87=8D=E5=A4=8D=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java b/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java index 335857b7c..261696b6b 100644 --- a/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java +++ b/src/main/java/com/glxp/api/idc/service/impl/IdcServiceImpl.java @@ -221,6 +221,7 @@ public class IdcServiceImpl implements IdcService { String sqlWhere = ""; if(!StringUtils.isEmpty(tnames[6])) { sqlWhere+=" "+tnames[6]+">= cast('"+lastUpdateTime+"' as datetime)";// and date_add(cast('"+DateUtil.formatDate(nowUpdateTime, "yyyy-MM-dd HH:mm:ss")+"' as datetime),INTERVAL 1 day)"; + sqlWhere = "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");