按人计算的支付规则

webht/payment
赵鹏 2 years ago
parent 09d418d838
commit 366f05580b

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

Loading…
Cancel
Save