workersignmodel.php 613 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: sicilon_IT
  5. * Date: 2025/2/9
  6. * Time: 10:21
  7. */
  8. namespace app\index\model;
  9. use think\Model;
  10. class workersignmodel extends Model{
  11. protected $table='t_workerdayinenclose';
  12. public function insinfo($arr){
  13. $res=$this->allowField(true)->save($arr);
  14. return $this->id;
  15. }
  16. /*
  17. * 20250209
  18. * 获取某人某一天的打卡记录
  19. */
  20. public function selinfobywiddate($wid,$recdate){
  21. $where_arr['wid']=$wid;
  22. $where_arr['signdate']=$recdate;
  23. $rec=$this->where($where_arr)->find();
  24. return $rec;
  25. }
  26. }