瀏覽代碼

[backend] Header : optimisation requête distributions passées et futures

refactoring
Guillaume Bourgeois 5 年之前
父節點
當前提交
c8c9337663
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. +0
    -2
      backend/views/layouts/header.php

+ 0
- 2
backend/views/layouts/header.php 查看文件

@@ -74,7 +74,6 @@ $producer = Producer::getCurrent() ;
<?php
$pastDistributionsArray = Distribution::find()
->with('order')
->where(['<', 'distribution.date', date('Y-m-d')])
->andWhere([
'distribution.id_producer' => Producer::getId(),
@@ -87,7 +86,6 @@ $producer = Producer::getCurrent() ;
$pastDistributionsArray = array_reverse($pastDistributionsArray) ;
$incomingDistributionsArray = Distribution::find()
->with('order')
->where(['>=', 'distribution.date', date('Y-m-d')])
->andWhere([
'distribution.id_producer' => Producer::getId(),

Loading…
取消
儲存