]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
смена date_shift на date
authorvladfo <fvv2011@gmail.com>
Thu, 10 Oct 2024 09:12:54 +0000 (12:12 +0300)
committervladfo <fvv2011@gmail.com>
Thu, 10 Oct 2024 09:12:54 +0000 (12:12 +0300)
erp24/services/MotivationService.php

index fcb72b15f6eb0d1c53738e3051447d836d2837b6..aa678da40ff1b9968a04890122d9e4067f8f82fc 100644 (file)
@@ -801,7 +801,7 @@ class MotivationService
 
         // Делаем запрос к TimetableFactModel
         $records = TimetableFactModel::find()
-            ->select(['DISTINCT ON (date_shift, admin_id) *'])
+            ->select(['DISTINCT ON (date, admin_id) *'])
             ->where(['store_id' => $storeId])
             ->andWhere(['between', 'date', $startDate, $endDate])
             ->orderBy(['date' => SORT_ASC, 'admin_id' => SORT_ASC, 'id' => SORT_ASC])