周郑

员工从离职人员修改为在职人员

发布时间:6年前浏览量: 1835 ℃评论数:暂未开放

在NC系统中,做了离职是不能反操作的,但是可以通过如下SQL进行修改。脚本如下,请根据实际情况做适配(无开发经验建议不要随意操作,否则后果自负)


select * from hi_psnjob  where begindate='2019-06-12' and pk_psndoc =(select pk_psndoc from bd_psndoc where code ='GF2018003')

--update hi_psnjob set trnstype ='3', poststat ='Y', endflag ='N',ismainjob='Y',lastflag ='Y' where begindate='2019-06-12' and pk_psndoc =(select pk_psndoc from bd_psndoc where code ='GF2018003')


select * from hi_psnorg where pk_psndoc =(select pk_psndoc from bd_psndoc where code ='GF2018003')

--update hi_psnorg set lastflag = 'Y', endflag='N',enddate='' where pk_psndoc =(select pk_psndoc from bd_psndoc where code ='GF2018003')


离职改成在职

栏目导航

微信扫码打赏

打赏排行榜

| 施主 | 时间 | 方式 | 金额 |

曾 俊 2020-02-16 微信打赏 ¥10.00

王 强 2020-01-24 微信打赏 ¥5.00

莫国成 2019-07-20 微信打赏 ¥ 50.00

说明:打赏记录每日24:00:00更新,50%用于无名公益!

1 2 3

手机扫码访问