发票管理apiadmin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
321 B

<?php
namespace app\model;
use think\Model;
class InvoiceFinalReport extends Model
{
public function getSumAmount($where)
{
$result = $this->where($where)->field('sum(`ydzse`) as ydzse_sum')->find();
return $result['ydzse_sum'] ? number_format($result['ydzse_sum'], 2, '.', ',') : 0;
}
}