浏览代码

[backend] Producteurs : somme des abonnements

dev
Guillaume 4 年前
父节点
当前提交
f040d15ff8
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. +2
    -5
      backend/controllers/ProducerAdminController.php

+ 2
- 5
backend/controllers/ProducerAdminController.php 查看文件

@@ -91,16 +91,13 @@ class ProducerAdminController extends BackendController
$dataProviderProducer = new ActiveDataProvider([
'query' => Producer::find()
->with('userProducer', 'user')
->orderBy('free_price DESC'),
->orderBy('active DESC, free_price DESC'),
'pagination' => [
'pageSize' => 1000,
],
]);

$producersArray = Producer::find()
->with('userProducer', 'user')
->orderBy('free_price DESC')
->all();
$producersArray = Producer::find()->where('active = 1')->all();

$sumFreePrice = 0 ;
foreach($producersArray as $producer) {

正在加载...
取消
保存