|
@@ -43,6 +43,7 @@ class Log extends Backend
|
|
*/
|
|
*/
|
|
public function index()
|
|
public function index()
|
|
{
|
|
{
|
|
|
|
+ ini_set('memory_limit','1000M');
|
|
//当前是否为关联查询
|
|
//当前是否为关联查询
|
|
$this->relationSearch = true;
|
|
$this->relationSearch = true;
|
|
//设置过滤方法
|
|
//设置过滤方法
|
|
@@ -67,7 +68,12 @@ class Log extends Backend
|
|
$row->getRelation('party')->visible(['party_name']);
|
|
$row->getRelation('party')->visible(['party_name']);
|
|
}
|
|
}
|
|
|
|
|
|
- $result = array("total" => $list->total(), "rows" => $list->items());
|
|
|
|
|
|
+ $sum_value = $this->model->alias('log')
|
|
|
|
+ ->with(['user','touser','party'])
|
|
|
|
+ ->where($where)
|
|
|
|
+ ->sum('log.value');
|
|
|
|
+
|
|
|
|
+ $result = array("total" => $list->total(), "rows" => $list->items(),"extend" => ['sum_value'=>$sum_value]);
|
|
|
|
|
|
return json($result);
|
|
return json($result);
|
|
}
|
|
}
|