|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace App\Service\v3\Implementations; |
|
|
namespace App\Service\v3\Implementations; |
|
|
|
|
|
use App\Constants\v3\UserType; |
|
|
use App\Model\v3\FinancialRecord; |
|
|
use App\Model\v3\FinancialRecord; |
|
|
use App\Service\v3\Interfaces\RevenueListServiceInterface; |
|
|
use App\Service\v3\Interfaces\RevenueListServiceInterface; |
|
|
|
|
|
|
|
|
@ -29,7 +30,8 @@ class RevenueListService implements RevenueListServiceInterface |
|
|
$mod = bcmod((string)$userId, '5', 0); |
|
|
$mod = bcmod((string)$userId, '5', 0); |
|
|
$financialRecord->suffix($mod); |
|
|
$financialRecord->suffix($mod); |
|
|
$builder = $financialRecord->where('user_id',$userId) |
|
|
$builder = $financialRecord->where('user_id',$userId) |
|
|
->where('money_type','<',100); |
|
|
|
|
|
|
|
|
//->where('money_type','<',100)
|
|
|
|
|
|
->where('user_type','=',UserType::STORE); |
|
|
// if(!empty($startTime) && !empty($endTime)){
|
|
|
// if(!empty($startTime) && !empty($endTime)){
|
|
|
// $builder->whereBetween('created_at',[strtotime($startTime.' 00:00:00'),strtotime($endTime.' 23:59:59')]);
|
|
|
// $builder->whereBetween('created_at',[strtotime($startTime.' 00:00:00'),strtotime($endTime.' 23:59:59')]);
|
|
|
// }
|
|
|
// }
|
|
|
|