新美光考勤项目 漏签字段增加上班打卡漏签

新美光HR项目
Chengliang 3 days ago
parent 29029caf1d
commit f83dcf20f3

@ -21,8 +21,16 @@ public class KqFormatTotal {
private Integer absenteeism;
/**
*
*/
private Integer forgotCheck;
/**
*
*/
private Integer forgotbeginworkcheck;
private Integer beLateMins;
private Integer gravebeLateMins;

@ -28,12 +28,13 @@ public class KqCalulateUtil {
public static List<KqFormatTotal> abnormalAttendance(String resourceId,String fromDate,String toDate) {
RecordSet rs = new RecordSet();
List<KqFormatTotal> kqFormatTotalList = new ArrayList<>();
rs.executeQuery("select resourceid, forgotCheck, absenteeism, beLateMins, gravebeLateMins, leaveEearly, " +
rs.executeQuery("select resourceid, forgotCheck,forgotbeginworkcheck, absenteeism, beLateMins, gravebeLateMins, leaveEearly, " +
" graveLeaveEarly from kq_format_total where resourceid = ? and kqdate >= '"+fromDate+"' and kqdate <= '"+toDate+"'",resourceId);
while (rs.next()) {
boolean isAbsence;
int absenteeism = Util.getIntValue(rs.getString("absenteeism"));
int forgotCheck = Util.getIntValue(rs.getString("forgotCheck"));
int forgotbeginworkcheck = Util.getIntValue(rs.getString("forgotbeginworkcheck"));
int beLateMins = Util.getIntValue(rs.getString("beLateMins"),0);
int gravebeLateMins = Util.getIntValue(rs.getString("gravebeLateMins"),0);
int leaveEearly = Util.getIntValue(rs.getString("leaveEearly"));
@ -42,6 +43,7 @@ public class KqCalulateUtil {
//规则1
isAbsence = isPositive(absenteeism) ||
isPositive(forgotCheck) ||
isPositive(forgotbeginworkcheck) ||
sumPositive(leaveEearly, graveLeaveEarly) > 0;
kqFormatTotalList.add(KqFormatTotal.builder()

Loading…
Cancel
Save