Commit b1e06427 by chenzg Committed by 284718418@qq.com

處理定時打卡代碼bug

parent 9a446ebd
...@@ -951,10 +951,16 @@ public class TimeCardController { ...@@ -951,10 +951,16 @@ public class TimeCardController {
//获取最后得到的最终余额 //获取最后得到的最终余额
double balance_days = kqglassoleavebalancemapper.Sumbalancedays(balance.getUserid(), userBean.getOrgCode(),balance.getLeaveRulesId()); double balance_days = kqglassoleavebalancemapper.Sumbalancedays(balance.getUserid(), userBean.getOrgCode(),balance.getLeaveRulesId());
if(emba != null && balance_days > 0) { if(emba != null && balance_days > 0) {
if(emba.getBalanceDays() != -1) {//确认为限制余额的 if(emba.getBalanceDays() != -1) {//确认为限制余额的
//修改最终的余额数 //修改最终的余额数
KqglAssoLeaveEmployeeBalance.builder().id(emba.getId()).balanceDays(balance_days).build().updateById(); KqglAssoLeaveEmployeeBalance.builder().id(emba.getId()).balanceDays(balance_days).build().updateById();
} }
}else{
if(emba.getBalanceDays() != -1) {//确认为限制余额的
//修改最终的余额数
KqglAssoLeaveEmployeeBalance.builder().id(emba.getId()).balanceDays(0).build().updateById();
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment