|
|
@@ -35,19 +35,19 @@ class StatIncomeService extends BaseService
|
|
|
}
|
|
|
|
|
|
//获取最近的收入情况 ssh 2019.9.21
|
|
|
- public static function getLatestIncome($start, $end, $merchantId)
|
|
|
+ public static function getLatestIncome($start, $end, $shopId)
|
|
|
{
|
|
|
- $list = self::getAllList('*', ['merchantId' => $merchantId, 'time' => ['between', [$start, $end]]], 'time asc');
|
|
|
+ $list = self::getAllList('*', ['shopId' => $shopId, 'time' => ['between', [$start, $end]]], 'time asc');
|
|
|
return $list;
|
|
|
}
|
|
|
|
|
|
//最近7天收入情况 ssh 2020.2.2
|
|
|
- public static function getLatestSevenDay($merchantId)
|
|
|
+ public static function getLatestSevenDay($shopId)
|
|
|
{
|
|
|
$return = dateUtil::getDate(1);
|
|
|
$start = $return[0];
|
|
|
$end = $return[1];
|
|
|
- $list = self::getLatestIncome($start, $end, $merchantId);
|
|
|
+ $list = self::getLatestIncome($start, $end, $shopId);
|
|
|
$data = [];
|
|
|
if (!empty($list)) {
|
|
|
foreach ($list as $key => $val) {
|