getList(5, 1); HelpHander::success($ret); } public function dep() { $lists = Db::name('dep') ->field('id,title') ->where('org_id', $this->orgId) ->where('enable', 1) ->where('del', 0) ->where('ph', 0) ->select(); HelpHander::success($lists); } public function getOrg() { $info = (new Org())->getInfo($this->orgId); if (!$info) { HelpHander::error('项目不存在'); } HelpHander::success($info); } // 获取系统配置 public function getConfig() { $name = input('name', '', 'trim'); $wyval = (new Config())->getConfig($name, $this->orgId); HelpHander::success(['val' => $wyval]); } public function phprotocol() { $id = input('orderId',0); $str = ''; if ($id > 0){ $sign = Db::name('ph_orders')->where('id', $id)->value('sign'); $str = '

客户签名:

护工签名:

'; $todos = Db::name('ph_todo') ->where('order_id',$id) ->whereIn('status',[1,2]) ->column('sign'); foreach ($todos as $k => $v){ if ($v){ $str .= ' '; } } $str .= '

'; } $info = Db::name("ph_protocol")->where('org_id',$this->orgId)->find(); if (!$info) { HelpHander::success(['content'=>""]); } HelpHander::success(['content' => $info['content'].$str]); } }