Compare commits
3 Commits
f69ef32f84
...
420873584e
| Author | SHA1 | Date | |
|---|---|---|---|
| 420873584e | |||
| 5be3e83f66 | |||
| 7f5bf9acdc |
@ -78,7 +78,7 @@ class LogController
|
||||
$argv=$_SERVER['argv'];
|
||||
// echo $argv[1];return false;
|
||||
$qry="select * from tbl_attendancelogs
|
||||
where cast(dates as date)=cast(now() as date)
|
||||
where cast(dates as date)=cast(now() as date) and isprocess=0
|
||||
order by _idx asc";
|
||||
$rs=$this->selectquerySP($qry);
|
||||
if($rs){
|
||||
@ -88,6 +88,11 @@ class LogController
|
||||
$d['timestamp']=date("Y-m-d H:i:s", strtotime($rw['dates'].' '.$rw['times']));
|
||||
$d['id']=$rw['fingerid'];
|
||||
$res=$this->fn_setattendance($d, $rw['deviceip']);
|
||||
if($res){
|
||||
$qryupdate="update tbl_attendancelogs set isprocess=1,processdate=now() where _idx='".$rw['_idx']."'";
|
||||
// echo $qryupdate."\n";
|
||||
$this->executeSP($qryupdate);
|
||||
}
|
||||
echo "End time : ".date("Y-m-d H:i:s")."\n\n";
|
||||
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ class LogController
|
||||
$argv=$_SERVER['argv'];
|
||||
// echo $argv[1];return false;
|
||||
$qry="select * from tbl_attendancelogs
|
||||
where cast(dates as date)=cast('".$argv[1]."' as date)
|
||||
where cast(dates as date)=cast('".$argv[1]."' as date) and isprocess=0
|
||||
order by _idx asc";
|
||||
$rs=$this->selectquerySP($qry);
|
||||
if($rs){
|
||||
@ -88,6 +88,12 @@ class LogController
|
||||
$d['timestamp']=date("Y-m-d H:i:s", strtotime($rw['dates'].' '.$rw['times']));
|
||||
$d['id']=$rw['fingerid'];
|
||||
$res=$this->fn_setattendance($d, $rw['deviceip']);
|
||||
if($res){
|
||||
$qryupdate="update tbl_attendancelogs set isprocess=1,processdate=now() where _idx='".$rw['_idx']."'";
|
||||
// echo $qryupdate."\n";
|
||||
$this->executeSP($qryupdate);
|
||||
}
|
||||
|
||||
echo "End time : ".date("Y-m-d H:i:s")."\n\n";
|
||||
|
||||
}
|
||||
@ -644,7 +650,7 @@ class LogController
|
||||
officename='".$rw['officename']."',idxdept='".$rw['idxdept']."',divisiname='".$rw['divisiname']."',
|
||||
serviconame='".$rw['serviconame']."',dates='".$rw['dates']."',".$attfield."
|
||||
islates='".$rw['islates']."',months='".$rw['months']."',years='".$rw['years']."',
|
||||
shiftcode='".$rw['shiftcode']."',lateperemployee='".$rw['lateperemployee']."',lateperemployeer2='".$rw['lateperemployeer2']."',
|
||||
shiftcode='".$rw['shiftcode']."',lateperemployee='".$rw['lateperemployee']."',
|
||||
deviceidcheckin='".$rw['deviceidcheckin']."',
|
||||
iby='svc',idt='".$rw['datestimes']."'";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user