From 366f05580b7052559e222bb506557772a27b98a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 23 Nov 2023 09:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E4=BA=BA=E8=AE=A1=E7=AE=97=E7=9A=84?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/ctmobilefirst/models/dms_model.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/application/third_party/ctmobilefirst/models/dms_model.php b/application/third_party/ctmobilefirst/models/dms_model.php index e2a7730d..71cdb958 100644 --- a/application/third_party/ctmobilefirst/models/dms_model.php +++ b/application/third_party/ctmobilefirst/models/dms_model.php @@ -167,6 +167,19 @@ class Dms_model extends CI_Model { $total = $count * 1; }else if ($rule == 2 ){ $total = $count * 2; + } + else if ($rule == 3 ){ + //按人数来算 ,1美元/人 + $rSql = "select isnull(sum(COLD_PersonNum),0) as sumP from BIZ_ConfirmLineDetail + inner join BIZ_FlightsOrderInfo on FOI_COLD_SN=COLD_SN + where COLD_COLI_SN in( select COLI_SN from BIZ_ConfirmLineInfo where COLI_sourcetype='".$id."' and COLI_State in(8,9,61,62) + AND COLI_servicetype='2' and isnull(DeleteFlag,0)<>1)"; + $queryR = $this->HT->query($rSql); + if ($queryR->num_rows()>0){ + $total = $queryR->row()->sumP; + }else{ + $total = 0 ; + } }else { $total = 0; }