完善接口

main
yanzai 2 months ago
parent 133d4a49a8
commit f9e0135bc4

@ -40,11 +40,12 @@ class TiJianListController
}; };
// 预约记录查询 // 预约记录查询
$yuyue_list = DB::table('appointment_record') $yuyue_list = DB::table('appointment_record as a')
->select('id', 'type', 'name', 'id_card_num', 'org_name', 'created_at') ->leftJoin('medical_institution as b', 'a.org_code', '=', 'b.sn')
->select('a.id', 'a.type', 'a.name', 'a.id_card_num', 'b.org_name', 'a.created_at')
->where($searchCondition) ->where($searchCondition)
->where('is_del', 0) ->where('a.is_del', 0)
->orderBy('id', 'desc') ->orderBy('a.id', 'desc')
->get() ->get()
->map(function ($value) { ->map(function ($value) {
return (array)$value; return (array)$value;

Loading…
Cancel
Save