|
@@ -18,7 +18,7 @@ class InvoiceOrder extends \think\Model{
|
|
|
}
|
|
|
public static function getInvoiceOrderTotalFee($code){
|
|
|
$banance = (new InvoiceOrder)->where(['code'=>$code,'status'=>[1,2]])->field('sum(ifnull(total_amount-balance_amount,0)) as total_amount')->find();
|
|
|
- return $banance['total_amount']??0;
|
|
|
+ return $banance['total_amount']??"0";
|
|
|
}
|
|
|
|
|
|
public function getMergeCodeAttr($value,$data){
|