1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class AttendanceGroupUser extends Base
- {
- // 列表
- public function queryGroupUserList(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $name = input('name','','trim');
- $phone = input('phone','','trim');
- $code = input('code','','trim');
- $jobId = input('jobId/d',0);
- $depId = input('depId/d',0);
- $ret = model('AttendanceGroupUser')->lists($page,$size,$name,$phone,$code,$jobId,$depId,$this->orgId);
- HelpHander::success($ret);
- }
- // 新增
- public function save(){
- model('AttendanceGroupUser')->add();
- HelpHander::success([],'操作成功');
- }
- //获取今天要打卡的考勤组
- public function mygroup(){
- $day = input('day','','trim');
- $day = $day?$day:date('Y-m-d');
- $ret = model('AttendanceGroupUser')->userGroup($this->userId,$this->orgId,$day);
- HelpHander::success($ret,'操作成功');
- }
- }
|