diff --git a/src/weaver/interfaces/shuzhi/cronjob/RelationshipReminderJob.java b/src/weaver/interfaces/shuzhi/cronjob/RelationshipReminderJob.java index 2d35734..1ebdc80 100644 --- a/src/weaver/interfaces/shuzhi/cronjob/RelationshipReminderJob.java +++ b/src/weaver/interfaces/shuzhi/cronjob/RelationshipReminderJob.java @@ -86,7 +86,7 @@ public class RelationshipReminderJob extends BaseCronJob { if ("".equals(gdrq) && flag) { //生效日期早于当前日期且无归档日期,生成流程到人员,手动调整; - String requestName = "员工关系更新提醒-" + lastname + "-" + date; + String requestName = "员工关系更新提醒-转正-" + lastname + "-" + date; Map mainMap = new HashMap<>(); mainMap.put("ygxm", userid); mainMap.put("gxlx", "0"); @@ -97,6 +97,10 @@ public class RelationshipReminderJob extends BaseCronJob { zt = ""; } } + + if(!"".equals(zt)){ + updateRecordData( id, zt,"uf_zzjl"); + } } String xbm = ""; @@ -133,7 +137,7 @@ public class RelationshipReminderJob extends BaseCronJob { if ("".equals(gdrq) && flag) { //生效日期早于当前日期且无归档日期,生成流程到人员,手动调整; - String requestName = "员工关系更新提醒-" + lastname + "-" + date; + String requestName = "员工关系更新提醒-调动-" + lastname + "-" + date; Map mainMap = new HashMap<>(); mainMap.put("ygxm", userid); mainMap.put("gxlx", "1"); @@ -144,6 +148,10 @@ public class RelationshipReminderJob extends BaseCronJob { zt = ""; } } + + if(!"".equals(zt)){ + updateRecordData( id, zt,"uf_ddjl_dt1"); + } } //uf_lzblcxbd:生效日期=jhlzrq(uf_lzblcxbd_dt1 计划离职日期)、归档日期=gdrq(归档日期) @@ -171,7 +179,7 @@ public class RelationshipReminderJob extends BaseCronJob { if ("".equals(gdrq) && flag) { //生效日期早于当前日期且无归档日期,生成流程到人员,手动调整; - String requestName = "员工关系更新提醒-" + lastname + "-" + date; + String requestName = "员工关系更新提醒-离职-" + lastname + "-" + date; Map mainMap = new HashMap<>(); mainMap.put("ygxm", userid); mainMap.put("gxlx", "2"); @@ -182,6 +190,10 @@ public class RelationshipReminderJob extends BaseCronJob { zt = ""; } } + + if(!"".equals(zt)){ + updateRecordData( id, zt,"uf_lzblcxbd_dt1"); + } } } @@ -233,5 +245,10 @@ public class RelationshipReminderJob extends BaseCronJob { return flag; } + private void updateRecordData(String id,String zt,String tablename){ + RecordSet rs = new RecordSet(); + rs.execute("update "+tablename+" set txlcid = '"+zt+"' where id = '"+id+"'"); + } + }