|
@@ -7,11 +7,11 @@
|
|
|
*/
|
|
|
namespace app\index\model;
|
|
|
use think\Model;
|
|
|
-class workersignmodel extends Model{
|
|
|
- protected $table='t_workerdayinenclose';
|
|
|
+class workersignmodel extends Model {
|
|
|
+ protected $table = 't_workersign';
|
|
|
|
|
|
- public function insinfo($arr){
|
|
|
- $res=$this->allowField(true)->save($arr);
|
|
|
+ public function insinfo($arr) {
|
|
|
+ $res = $this->allowField(true)->save($arr);
|
|
|
return $this->id;
|
|
|
}
|
|
|
|
|
@@ -19,10 +19,10 @@ class workersignmodel extends Model{
|
|
|
* 20250209
|
|
|
* 获取某人某一天的打卡记录
|
|
|
*/
|
|
|
- public function selinfobywiddate($wid,$recdate){
|
|
|
- $where_arr['wid']=$wid;
|
|
|
- $where_arr['signdate']=$recdate;
|
|
|
- $rec=$this->where($where_arr)->find();
|
|
|
+ public function selinfobywiddate($wid, $recdate) {
|
|
|
+ $where_arr['wid'] = $wid;
|
|
|
+ $where_arr['signdate'] = $recdate;
|
|
|
+ $rec = $this->where($where_arr)->find();
|
|
|
return $rec;
|
|
|
}
|
|
|
|