Просмотр исходного кода

平台后台--订单概括--生活区和复购区添加mer_id进行测试

xupuyuan 1 год назад
Родитель
Сommit
ae4424ffc6
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      app/common/repositories/finance/FinanceRepository.php

+ 4 - 2
app/common/repositories/finance/FinanceRepository.php

@@ -166,6 +166,7 @@ class FinanceRepository extends BaseRepository
166 166
     
167 167
             //精彩生活区订单总数
168 168
             //总数
169
+            $mer_id = 439;
169 170
             $chengjiaocount = Db::name('store_order')->where($where)->where('mer_id', 439)->count();
170 171
             $weekCount = Db::name('store_order')->where($weekWhere)->where('mer_id', 439)->count();
171 172
             $todayCount = Db::name('store_order')->where($dayWhere)->where('mer_id', 439)->count();
@@ -182,6 +183,7 @@ class FinanceRepository extends BaseRepository
182 183
     
183 184
             //复购区订单总数
184 185
             //总数
186
+            $mer_id = 491;
185 187
             $tuikuanmoney = Db::name('store_order')->where($where)->where('mer_id', 491)->count();
186 188
             $weekCount = Db::name('store_order')->where($weekWhere)->where('mer_id', 491)->count();
187 189
             $todayCount = Db::name('store_order')->where($dayWhere)->where('mer_id', 491)->count();
@@ -248,9 +250,9 @@ class FinanceRepository extends BaseRepository
248 250
     
249 251
     
250 252
             $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($chengjiaomoney), 'name' => '会员专区订单总数', 'mer_id' => $mer_id, 'list' => $list1];
251
-            $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($chengjiaocount), 'name' => '精彩生活区订单总数', 'list' => $list2];
253
+            $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($chengjiaocount), 'name' => '精彩生活区订单总数', 'mer_id' => $mer_id, 'list' => $list2];
252 254
             $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($chengjiaoren), 'name' => '商贸区订单总数', 'list' => $list3];
253
-            $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($tuikuanmoney), 'name' => '复购区订单总数', 'list' => $list4];
255
+            $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($tuikuanmoney), 'name' => '复购区订单总数', 'mer_id' => $mer_id, 'list' => $list4];
254 256
             $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($tuikuancount), 'name' => '三方平台订单总数', 'list' => $list5];
255 257
             $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($tuikuanren), 'name' => '线下订单总数', 'list' => $list6];
256 258
             return $data;