优化打卡机, 钉钉未打下班卡, 禁止打加班卡
This commit is contained in:
parent
ce60d0986f
commit
2f88db00da
@ -104,10 +104,17 @@ public class KQDeviceExchangeProcessor implements PunchTheClockStrategyExchangeP
|
|||||||
// return initMessage(0,"验证通过", "111000000");
|
// return initMessage(0,"验证通过", "111000000");
|
||||||
return initMessage(0,"验证通过", "000000000");
|
return initMessage(0,"验证通过", "000000000");
|
||||||
}
|
}
|
||||||
|
//检查最后一条打卡记录是否为钉钉的下班卡, 如果不存在禁止打加班卡
|
||||||
// return initMessage(0,"验证通过", "111100000");
|
// return initMessage(0,"验证通过", "111100000");
|
||||||
return initMessage(0,"验证通过", "00100000");
|
return initMessage(0,"验证通过", "000100000");
|
||||||
}else{
|
}else{
|
||||||
return initMessage(0,"验证通过", "000011000");
|
//检查钉钉是否存在今天的下班卡, 和加班卡
|
||||||
|
if("加班卡".equals(rzAttendanceDetail.getButtonType())){
|
||||||
|
return initMessage(0,"验证通过", "000011000");
|
||||||
|
}else{
|
||||||
|
return initMessage(0,"验证通过", "000000000");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user