Commit 6f9fa3a4 by ilal

提交

parent 7d331d22
...@@ -3144,12 +3144,13 @@ public class ClockInController { ...@@ -3144,12 +3144,13 @@ public class ClockInController {
.eq(KqglAssoDkjl::getUserId, userBean.getEmpNum()).ge(KqglAssoDkjl::getDktime, startDate).le(KqglAssoDkjl::getDktime, endDate) .eq(KqglAssoDkjl::getUserId, userBean.getEmpNum()).ge(KqglAssoDkjl::getDktime, startDate).le(KqglAssoDkjl::getDktime, endDate)
.ne(KqglAssoDkjl::getSort, 0).ne(KqglAssoDkjl::getStatus, 2).ne(KqglAssoDkjl::getStatus, 0) .ne(KqglAssoDkjl::getSort, 0).ne(KqglAssoDkjl::getStatus, 2).ne(KqglAssoDkjl::getStatus, 0)
.orderByDesc(KqglAssoDkjl::getSort).last("LIMIT 1")); .orderByDesc(KqglAssoDkjl::getSort).last("LIMIT 1"));
if(dk != null) {
AttSchedule att = attsch.get(dk.getSort()-1); AttSchedule att = attsch.get(dk.getSort()-1);
att.setIsupdate(1); att.setIsupdate(1);
AttSchedule attw = attsch.get(dk.getSort()-2); AttSchedule attw = attsch.get(dk.getSort()-2);
attw.setIsupdate(0); attw.setIsupdate(0);
}
} }
//全部为缺卡时 没有打卡按钮显示 //全部为缺卡时 没有打卡按钮显示
......
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