新美光考勤项目 夜班次数判断跨天 下班打卡日期

新美光HR项目
Chengliang 3 days ago
parent f83dcf20f3
commit 00a557fe97

@ -150,7 +150,7 @@ public class KqCalulateUtil {
public static boolean calculateClockTime(String resourceId,String kqDate,int serialid){ public static boolean calculateClockTime(String resourceId,String kqDate,int serialid){
RecordSet rs = new RecordSet(); RecordSet rs = new RecordSet();
rs.executeQuery("select resourceid,kqdate,signintime,signouttime from kq_format_detail where kqdate = '"+kqDate+"' and resourceid = ? and serialid = ? \n" + rs.executeQuery("select resourceid,kqdate,signintime,signouttime from kq_format_detail where kqdate = '"+kqDate+"' and signoutdate > '"+kqDate+"' and resourceid = ? and serialid = ? \n" +
" and signintime >= '18:00:00' and signintime <= '20:30:00' and signouttime >= '05:30:00'",resourceId,serialid); " and signintime >= '18:00:00' and signintime <= '20:30:00' and signouttime >= '05:30:00'",resourceId,serialid);
return rs.getCounts() > 0; return rs.getCounts() > 0;
} }

Loading…
Cancel
Save