反結轉年假

2021-05-10 09:09:54 字數 585 閱讀 3611

年假不小心結轉到下一年,返回操作指令碼:

1、修改

update t_hr_yrbanlance set fstatus=0 where fpersonid in(select fpersonid from t_hr_yvperson yperson inner join _hr_yrule on yrule.fid = yperson.fyvruleid where yrule.fnumber='001') and fyear=2009;

2、刪除

delete from t_hr_yvbalance where fpersonid in(select fpersonid from t_hr_yvrule yrule on yrule.fid=yperson.fyvruleid where fnumber='001') and fyear=2010;

說明:1、以上兩段指令碼的執行順序可以是任意的

2、yrule。fnumber年假規則編碼

3、修改的這段指令碼,fyear填寫的是需要恢復的當前年假。

4、刪除指令碼,fyear是需要刪除的年假。

5、例如:不小心結轉到2023年,需返回2023年切年假規則編碼為0001