1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class AttendanceLeave extends Base
- {
- // 列表
- public function list(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $name = input('name','','trim');
- $type = input('type/d',0);
- $ret = model('AttendanceLeave')->lists($page,$size,$name,$type,$this->orgId);
- HelpHander::success($ret);
- }
- public function userList(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $name = input('name','','trim');
- $type = input('type/d',0);
- $uid = input('uid/d',0);
- $ret = model('AttendanceLeave')->lists($page,$size,$name,$type,$this->orgId,$uid);
- HelpHander::success($ret);
- }
- public function leaveRecord(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $startTime = input('startTime','','trim');
- $endTime = input('endTime','','trim');
- $uid = input('uId/d',0);
- $ret = model('AttendanceLeave')->leaveRecord($page,$size,$this->orgId,$uid,$startTime,$endTime);
- HelpHander::success($ret);
- }
- }
|