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; }