JijiaoPrimarySchool.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2021 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: https://thinkadmin.top
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // +----------------------------------------------------------------------
  11. // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
  12. // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
  13. // +----------------------------------------------------------------------
  14. namespace app\county\controller;
  15. use think\admin\Controller;
  16. use hg\apidoc\annotation as Apidoc;
  17. /**
  18. * 基教小学管理
  19. * Class User
  20. * @package app\admin\controller
  21. */
  22. class JijiaoPrimarySchool extends Controller
  23. {
  24. /**
  25. * 绑定数据表
  26. * @var string
  27. */
  28. private $table = 'jijiao_primary_school';
  29. /**
  30. * 基教小学管理
  31. * @auth true
  32. * @menu true
  33. * @throws \think\db\exception\DataNotFoundException
  34. * @throws \think\db\exception\DbException
  35. * @throws \think\db\exception\ModelNotFoundException
  36. */
  37. public function index()
  38. {
  39. $this->title = '基教小学';
  40. $county_id = session('user.county_id');
  41. $query = $this->_query($this->table)->where('county_id',$county_id);
  42. // 列表排序并显示
  43. $query->page();
  44. }
  45. }