From dac18c51c5dcea7dafb8d55ed8f775167260e6ad Mon Sep 17 00:00:00 2001 From: howec <> Date: Tue, 19 Dec 2023 12:36:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8A=B3=E5=8A=A1=E8=BD=AC=E8=87=AA?= =?UTF-8?q?=E6=8B=9B=E7=94=9F=E6=95=88=E6=97=A5=E6=9C=9F=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=88=B0=E9=80=9A=E8=AE=AF=E5=BD=95=E7=9A=84=E9=82=A3=E4=B8=AA?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E4=B9=9F?= =?UTF-8?q?=E8=A6=81=E5=90=8C=E6=AD=A5=E5=88=B7=E5=88=B0=E5=85=A5=E8=81=8C?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E4=B8=8A=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/weaver/haikang/cronjob/FlowLaowuZzService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/weaver/haikang/cronjob/FlowLaowuZzService.java b/src/weaver/haikang/cronjob/FlowLaowuZzService.java index 7f133a4..6e864a0 100644 --- a/src/weaver/haikang/cronjob/FlowLaowuZzService.java +++ b/src/weaver/haikang/cronjob/FlowLaowuZzService.java @@ -87,6 +87,10 @@ public class FlowLaowuZzService { log.error("sql5 =::::::::::::5:"+sql5); } } + //更新入职日期 + String rzrqsql = "update hrmresource set companystartdate = '"+date3+"' where id = "+uid; + recordSetd.executeUpdate(rzrqsql); + log.error("sql5-1 =::::::::::::5-1:"+rzrqsql); } } } From bf1d6375ce0dc390031d4f24fe8c19bb816e159f Mon Sep 17 00:00:00 2001 From: howec <> Date: Wed, 20 Dec 2023 12:23:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8A=B3=E5=8A=A1=E8=BD=AC=E8=87=AA?= =?UTF-8?q?=E6=8B=9B=E7=94=9F=E6=95=88=E6=97=A5=20=20=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=91=98=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); + } } } //更新入职日期