AttendanceApply.php 782 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. use think\Db;
  6. class AttendanceApply extends Base
  7. {
  8. // 列表
  9. public function list(){
  10. $page = input('page/d',1);
  11. $size = input('size/d',10);
  12. $name = input('name','','trim');
  13. $wyorgId = input('wyorgId/d',0);
  14. $status = input('status/d',-1);
  15. $ret = model('WyUserApply')->lists($page,$size,$name,$wyorgId,$status);
  16. HelpHander::success($ret);
  17. }
  18. // 处理审核
  19. public function deal(){
  20. $id = input('id/d',0);
  21. $status = input('status/d',0);
  22. $remark = input('remark','','trim');
  23. model('WyUserApply')->deal($id,$status,$remark);
  24. HelpHander::success([],'操作成功');
  25. }
  26. }