You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
701 B
PHP
24 lines
701 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Admin\YeWu;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class QuestionController extends Controller
|
|
{
|
|
public function GetList()
|
|
{
|
|
$searchInfo = request('searchInfo');
|
|
if (!isset($searchInfo['hospital_id'])) return \Yz::echoError1("医院id不能为空");
|
|
if (!isset($searchInfo['q_type'])) return \Yz::echoError1("问卷类型不能为空");
|
|
$list = DB::table('questions')
|
|
->where(['hospital_id'=>$searchInfo['hospital_id'],
|
|
'q_type'=>$searchInfo['q_type']
|
|
])->orderBy('order','asc')->get();
|
|
return \Yz::Return(true,"查询成功",['list'=>$list]);
|
|
|
|
}
|
|
}
|