|
|
@ -140,7 +140,7 @@ class OrderFinance_model extends CI_Model {
|
|
|
|
public function get_max_cold_person_num($coli_sn=0, $cold_str='')
|
|
|
|
public function get_max_cold_person_num($coli_sn=0, $cold_str='')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$sql = "SELECT
|
|
|
|
$sql = "SELECT
|
|
|
|
ISNULL(MAX(COLD_PersonNum+COLD_ChildNum+ISNULL(COLD_BabyNum,0)), 0) person_num
|
|
|
|
ISNULL(MAX(ISNULL(COLD_PersonNum,0)+ISNULL(COLD_ChildNum,0)+ISNULL(COLD_BabyNum,0)), 0) person_num
|
|
|
|
,ISNULL(MAX(COLD_PersonNum), 0) adult_num
|
|
|
|
,ISNULL(MAX(COLD_PersonNum), 0) adult_num
|
|
|
|
,ISNULL(MAX(COLD_ChildNum+ISNULL(COLD_BabyNum,0)), 0) child_num
|
|
|
|
,ISNULL(MAX(COLD_ChildNum+ISNULL(COLD_BabyNum,0)), 0) child_num
|
|
|
|
from BIZ_ConfirmLineDetail
|
|
|
|
from BIZ_ConfirmLineDetail
|
|
|
|