From ead667e72bdc015d7332a80365366739e33b1df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9APD?= <13558507+yao-shipeng@user.noreply.gitee.com> Date: Thu, 15 Aug 2024 06:13:37 +0000 Subject: [PATCH] =?UTF-8?q?update=20serve/app/controller/Crt.php.=20?= =?UTF-8?q?=E5=88=A9=E6=B6=A6=E8=A1=A8=E6=8A=A5=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 姚PD <13558507+yao-shipeng@user.noreply.gitee.com> --- serve/app/controller/Crt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/serve/app/controller/Crt.php b/serve/app/controller/Crt.php index cd1f356..94c6f83 100644 --- a/serve/app/controller/Crt.php +++ b/serve/app/controller/Crt.php @@ -1697,9 +1697,9 @@ class Crt extends Acl{ } } //计算数据 - $si=math()->chain($record[0]['money'])->sub($record[1]['money'])->add($record[2]['money'])->sub($record[3]['money'])->done(); - $cost=math()->chain($record[0]['cost'])->add($record[1]['cost'])->add($record[2]['cost'])->add($record[3]['cost'])->done(); - $bct=math()->chain($summary[0]['bct'])->sub($summary[1]['bct'])->add($summary[2]['bct'])->sub($summary[3]['bct'])->done(); + $si=math()->chain($record[0]['money'])->sub($record[1]['money'])->done(); + $cost=math()->chain($record[0]['cost'])->add($record[1]['cost'])->done(); + $bct=math()->chain($summary[0]['bct'])->sub($summary[1]['bct'])->done(); $profit=math()->chain($si)->sub($cost)->sub($bct)->done(); $data=[ ['name'=>'主营业务','money'=>''],