people.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. namespace app\admin\controller\project;
  3. use app\admin\BaseController;
  4. use app\admin\controller\field\Field;
  5. use app\admin\model\CostProject as CostProjectModel;
  6. use app\admin\model\Department as DepartmentModel;
  7. use think\App;
  8. use think\facade\Db;
  9. class people extends BaseController
  10. {
  11. /**
  12. * 构造函数
  13. */
  14. public function __construct(App $app)
  15. {
  16. parent::__construct($app);
  17. $this->Field = new Field($this->app);
  18. $this->department = new DepartmentModel();
  19. $this->model = new CostProjectModel();
  20. $this->uid = get_login_admin('id');
  21. }
  22. public function cdatalist(){
  23. // if (request()->isAjax()) {
  24. $param = get_params();
  25. $inarr=array();
  26. $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
  27. $order = empty($param['order']) ? 'id desc' : $param['order'];
  28. $list = $this->model->where("id",$param["project_id"])->field('review_head,operate_head,operate_team')->select()->toArray();
  29. $a = $list[0];
  30. $ids = $a["review_head"].','.$a["operate_head"].','.$a["operate_team"];
  31. $ids = explode(",",$ids);
  32. // Db::name("admin")->whereIn("id",$ids)->join()
  33. halt($ids);
  34. // }else{
  35. //
  36. // }
  37. }
  38. public function gdatalist(){
  39. if (request()->isAjax()) {
  40. $param = get_params();
  41. $rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
  42. $order = empty($param['order']) ? 'id desc' : $param['order'];
  43. $list = $this->model->where("id",$param["project_id"])->field('')->select()->toArray();
  44. }else{
  45. }
  46. }
  47. }