1.新增时间筛选功能
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\dice\logic\player_wallet_record;
|
||||
|
||||
use app\dice\helper\AdminScopeHelper;
|
||||
use app\dice\basic\DiceBaseLogic;
|
||||
use plugin\saiadmin\exception\ApiException;
|
||||
use app\dice\model\player_wallet_record\DicePlayerWalletRecord;
|
||||
@@ -28,18 +27,6 @@ class DicePlayerWalletRecordLogic extends DiceBaseLogic
|
||||
$this->setOrderType('DESC');
|
||||
}
|
||||
|
||||
/**
|
||||
* 按与列表相同的筛选条件汇总平台币变化(不含 with / 分页 / 排序)
|
||||
*/
|
||||
public function sumCoinBySearch(array $where, ?array $adminInfo, $requestDeptId = null): float
|
||||
{
|
||||
$query = $this->search($where);
|
||||
AdminScopeHelper::applyAdminScope($query, $adminInfo, $requestDeptId);
|
||||
$table = $this->model->getTable();
|
||||
$sum = $query->sum($table . '.coin');
|
||||
return round((float) $sum, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加数据(补全抽奖次数字段默认值)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user