|
|
@@ -31,7 +31,7 @@ class WechatpayTransferBillEntity extends BaseEntity
|
|
|
|
|
|
public function getTransferBillStats(array $params): array
|
|
|
{
|
|
|
- return $this->field('state, count(*) as count, sum(transfer_amount) as amount')
|
|
|
+ return $this->field('state, count(*) as count, sum(transfer_amount + fee) as amount')
|
|
|
->group('state')
|
|
|
->select()
|
|
|
->toArray();
|