dever 3 лет назад
Родитель
Сommit
146cf148e5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      service/bill/database/goods_stat.php

+ 1 - 1
service/bill/database/goods_stat.php

@@ -197,7 +197,7 @@ return array
             'type' => 'all',
             'type' => 'all',
             'order' => array('day' => 'desc', 'cdate' => 'desc'),
             'order' => array('day' => 'desc', 'cdate' => 'desc'),
             'page' => array(20, 'list'),
             'page' => array(20, 'list'),
-            'group' => '(case when type == 2 then concat_ws("_", type, type_id) else concat_ws("_", type, type_id, sku_id) end)',
+            'group' => '(case when type = 2 then concat_ws("_", type, type_id) else concat_ws("_", type, type_id, sku_id) end)',
             'col' => '*,sum(total_num) as total_num, sum(sell_num) as sell_num, sum(cash) as cash',
             'col' => '*,sum(total_num) as total_num, sum(sell_num) as sell_num, sum(cash) as cash',
         ),
         ),
     ),
     ),