|
|
|
@ -17,6 +17,7 @@ class ImsCjdcOrderMain extends EloquentRepository |
|
|
|
|
|
|
|
public function get(Grid\Model $model) |
|
|
|
{ |
|
|
|
|
|
|
|
$builder = new \App\Models\ImsCjdcOrderMain(); |
|
|
|
$builder = $builder::leftJoin('lanzu_user','lanzu_user.id','lanzu_order_main.user_id') |
|
|
|
->with('market') |
|
|
|
@ -33,6 +34,12 @@ class ImsCjdcOrderMain extends EloquentRepository |
|
|
|
$value['arguments'][1] = $this->getGridColumns(); |
|
|
|
} elseif ($value['method'] == 'get') { |
|
|
|
$value['arguments'] = [$this->getGridColumns()]; |
|
|
|
}elseif ($value['method']=='whereBetween'){ |
|
|
|
if ($value['arguments'][0]=='created_at'){ |
|
|
|
$value['arguments'][0] = 'lanzu_order_main.created_at'; |
|
|
|
$value['arguments'][1][0] = strtotime($value['arguments'][1][0]); |
|
|
|
$value['arguments'][1][1] = strtotime($value['arguments'][1][1]); |
|
|
|
} |
|
|
|
} |
|
|
|
$query = call_user_func_array([$query, $value['method']], $value['arguments'] ?? []); |
|
|
|
}); |
|
|
|
|