|
|
|
@ -9,5 +9,14 @@ use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
|
|
|
|
class ReportController extends Controller
|
|
|
|
class ReportController extends Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
public function GetReportList(){
|
|
|
|
|
|
|
|
$openid =request('openid');
|
|
|
|
|
|
|
|
if(!isset($openid)) return \Yz::echoError1("openid不能为空");
|
|
|
|
|
|
|
|
$user = DB::table('web_users')->where(['openid' => $openid, 'status' => 1, 'is_del' => 0])->first();
|
|
|
|
|
|
|
|
if (!$user) return \Yz::echoError1('用户不存在');
|
|
|
|
|
|
|
|
$persons=DB::table('web_user_person')->where(['user_id' => $user->id, 'is_del' => 0])->pluck('id_number')->toArray();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$list=DB::table('report_l1_records')->select('姓名','性别','登记时间','套餐名称','体检号','体检状态','is_read')->whereIn('证件号码',$persons)->get();
|
|
|
|
|
|
|
|
return \Yz::Return(true,"查询完成",['list'=>$list]);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|