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.
17 lines
393 B
17 lines
393 B
<?php
|
|
|
|
namespace app\model;
|
|
|
|
use think\Model;
|
|
|
|
class FinalReportDate extends Model
|
|
{
|
|
|
|
public function getSumAmount($date)
|
|
{
|
|
$result = $this->where(['report_date' => $date])->field('id')->find();
|
|
if (!$result) return 0;
|
|
$ydzse_sum = FinalReportData::getFrdSumAmount($result['id']);
|
|
return $ydzse_sum ? number_format($ydzse_sum, 2, '.', ',') : 0;
|
|
}
|
|
}
|
|
|