12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class AttendanceApply extends Base
- {
- // 列表
- public function list(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $name = input('name','','trim');
- $wyorgId = input('wyorgId/d',0);
- $status = input('status/d',-1);
- $ret = model('WyUserApply')->lists($page,$size,$name,$wyorgId,$status);
- HelpHander::success($ret);
- }
- // 处理审核
- public function deal(){
- $id = input('id/d',0);
- $status = input('status/d',0);
- $remark = input('remark','','trim');
- model('WyUserApply')->deal($id,$status,$remark);
- HelpHander::success([],'操作成功');
- }
- }
|