From bf1d6375ce0dc390031d4f24fe8c19bb816e159f Mon Sep 17 00:00:00 2001 From: howec <> Date: Wed, 20 Dec 2023 12:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=B3=E5=8A=A1=E8=BD=AC=E8=87=AA=E6=8B=9B?= =?UTF-8?q?=E7=94=9F=E6=95=88=E6=97=A5=20=20=E5=90=8C=E6=AD=A5=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E6=80=A7=E8=B4=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../haikang/cronjob/FlowLaowuZzService.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/weaver/haikang/cronjob/FlowLaowuZzService.java b/src/weaver/haikang/cronjob/FlowLaowuZzService.java index 6e864a0..ac83b5e 100644 --- a/src/weaver/haikang/cronjob/FlowLaowuZzService.java +++ b/src/weaver/haikang/cronjob/FlowLaowuZzService.java @@ -76,15 +76,16 @@ public class FlowLaowuZzService { recordSetb_1.executeUpdate(insertsql,1,-1,"HrmCustomFieldByInfoType",uid); log.error("howec:::::::::::::::::5:"+insertsql); }else { - String sqlx = "select "+zzzygxz+" from cus_fielddata where scopeid = -1 and scope = 'HrmCustomFieldByInfoType' and id = "+uid; - log.error("howec:::::::::::::::::6:"+sqlx); - recordSetd1.executeQuery(sqlx); - recordSetd1.next(); - String zzzygxz2 = recordSetd1.getString(zzzygxz); - if(zzzygxz2.length() == 0) { - String sql5 = "update cus_fielddata set "+zzzygxz+" = '1' where scopeid = -1 and scope = 'HrmCustomFieldByInfoType' and id = "+uid; - recordSetd.executeUpdate(sql5); - log.error("sql5 =::::::::::::5:"+sql5); + String sql3 = "select "+zzzrzlx+","+zzzsxrq+" from cus_fielddata where scopeid = 3 and scope = 'HrmCustomFieldByInfoType' and id = "+uid; + log.error("sql3x =::::::::::::3:"+sql3); + recordSetd1.executeQuery(sql3); + while (recordSetd1.next()) { + String zzzrzlx1 = recordSetd1.getString(zzzrzlx);//入职类型 + if(("1".equals(zzzrzlx1))) { + String sql5 = "update cus_fielddata set "+zzzygxz+" = '1' where scopeid = -1 and scope = 'HrmCustomFieldByInfoType' and id = "+uid; + recordSetd.executeUpdate(sql5); + log.error("sql5x =::::::::::::5:"+sql5); + } } } //更新入职日期