From 09d418d8382787723f32522154c8675f7f2c2939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Tue, 21 Nov 2023 13:57:07 +0800 Subject: [PATCH] fix --- application/third_party/ctmobilefirst/models/dms_model.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/third_party/ctmobilefirst/models/dms_model.php b/application/third_party/ctmobilefirst/models/dms_model.php index 2361ddb7..e2a7730d 100644 --- a/application/third_party/ctmobilefirst/models/dms_model.php +++ b/application/third_party/ctmobilefirst/models/dms_model.php @@ -111,8 +111,10 @@ class Dms_model extends CI_Model { $returndata = $qurey2->result(); foreach ($returndata as $item) { $paydetail = $this->get_paydetail($item->dt_HTid); - $trainOrderCount = $paydetail->total; + $trainOrderCount = $paydetail->count; + $trainOrderTotal = $paydetail->total; $item->trainOrderCount = $trainOrderCount; + $item->trainOrderTotal = $trainOrderTotal; } //return 数据和总数 return array('data' => $returndata, 'total' => $count); @@ -181,7 +183,7 @@ class Dms_model extends CI_Model { $result = new stdClass(); $result->count = $count; - $result->total = $total; + $result->total = round($total,2); $result->sum = round($sum,2); return $result;