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
289 B
16 lines
289 B
<?php
|
|
|
|
namespace app\model;
|
|
|
|
use think\Model;
|
|
|
|
class FinalReportData extends Model
|
|
{
|
|
|
|
public static function getFrdSumAmount($frd_id)
|
|
{
|
|
$res = self::where('frd_id', $frd_id)->field('sum(ydzse) as sum_amount')->find();
|
|
return $res ? $res['sum_amount'] : 0;
|
|
}
|
|
|
|
}
|
|
|