|
|
|
@ -761,8 +761,12 @@ class UserOrderController extends Controller
|
|
|
|
$time = $request->post('time');
|
|
|
|
$time = $request->post('time');
|
|
|
|
$search = $request->post('search');
|
|
|
|
$search = $request->post('search');
|
|
|
|
$status = $request->post('status');
|
|
|
|
$status = $request->post('status');
|
|
|
|
$list = UserOrder::select('*')
|
|
|
|
// $list = UserOrder::select('*')
|
|
|
|
->where('hospital', $hospital);
|
|
|
|
// ->where('hospital', $hospital);
|
|
|
|
|
|
|
|
$list = UserOrder::select('user_orders.*', 'profitsharing_logs.receivers','profitsharing_logs.status as sharing_status')
|
|
|
|
|
|
|
|
->where('user_orders.hospital', $hospital)
|
|
|
|
|
|
|
|
->leftjoin('profitsharing_logs', 'user_orders.id', '=', 'profitsharing_logs.order');
|
|
|
|
|
|
|
|
|
|
|
|
if ($status == 2) {
|
|
|
|
if ($status == 2) {
|
|
|
|
$list = $list->where('status', 2)->where('refund_time', null);
|
|
|
|
$list = $list->where('status', 2)->where('refund_time', null);
|
|
|
|
} elseif ($status == 7) {
|
|
|
|
} elseif ($status == 7) {
|
|
|
|
|