|
|
@@ -11,6 +11,7 @@
|
|
11
|
11
|
namespace app\common\repositories\finance;
|
|
12
|
12
|
// use app\common\dao\article\ArticleDao;
|
|
13
|
13
|
// use app\common\model\article\ArticleContent;
|
|
|
14
|
+use app\common\enum\CommonEnum;
|
|
14
|
15
|
use app\common\repositories\BaseRepository;
|
|
15
|
16
|
use app\common\repositories\user\UserRepository;
|
|
16
|
17
|
use think\Exception;
|
|
|
@@ -247,6 +248,14 @@ class FinanceRepository extends BaseRepository
|
|
247
|
248
|
$todayCount = Db::name('order_merchant')->where($dayWhere)->count();
|
|
248
|
249
|
$list6[] = ['count' => $weekCount, 'name' => '周订单总数'];
|
|
249
|
250
|
$list6[] = ['count' => $todayCount, 'name' => '日订单总数'];
|
|
|
251
|
+
|
|
|
252
|
+ // 共富订单统计
|
|
|
253
|
+ $shared_mer_id = CommonEnum::DESIGN_MERCHANT_ID['SharedProsperity']['code'];
|
|
|
254
|
+ $sharedMoney = Db::name('store_order')->where($where)->where('mer_id', $shared_mer_id)->count();
|
|
|
255
|
+ $weekCount = Db::name('store_order')->where($weekWhere)->where('mer_id', $shared_mer_id)->count();
|
|
|
256
|
+ $todayCount = Db::name('store_order')->where($dayWhere)->where('mer_id', $shared_mer_id)->count();
|
|
|
257
|
+ $list7[] = ['count' => $weekCount, 'name' => '周订单总数'];
|
|
|
258
|
+ $list7[] = ['count' => $todayCount, 'name' => '日订单总数'];
|
|
250
|
259
|
|
|
251
|
260
|
|
|
252
|
261
|
$data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($chengjiaomoney), 'name' => '会员专区订单总数', 'mer_id' => $mer_idhy, 'list' => $list1];
|
|
|
@@ -255,6 +264,7 @@ class FinanceRepository extends BaseRepository
|
|
255
|
264
|
$data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($tuikuanmoney), 'name' => '复购区订单总数', 'mer_id' => $mer_idfg, 'list' => $list4];
|
|
256
|
265
|
$data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($tuikuancount), 'name' => '三方平台订单总数', 'list' => $list5];
|
|
257
|
266
|
$data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($tuikuanren), 'name' => '线下订单总数', 'list' => $list6];
|
|
|
267
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($sharedMoney), 'name' => '共富订单总数', 'list' => $list7];
|
|
258
|
268
|
return $data;
|
|
259
|
269
|
}
|
|
260
|
270
|
}
|