方维团购系统 ,s_order_incharge_handle()函数分析;
select a.data_total_referral_money as referral_money, b.id, b.buy_count, b.user_count, b.type_id, b.is_first_referral, b.close_referrals, b.referrals, b.city_id, a.data_total_score as score, b.goods_short_name from ".DB_PREFIX."order_goods a ".
"left outer join ".DB_PREFIX."goods b on b.id = a.rec_id where a.order_id =66
referral_money | id | buy_count | user_count | type_id | is_first_referral | close_referrals | referrals | city_id | score | goods_short_name |
0.0000 | 88 | 7 | 3 | 0 | 0 | 0 | 0 | 1 | 0 | 梵雅葡萄酒品尝套餐 |
0.0000 | 88 | 7 | 3 | 0 | 0 | 0 | 0 | 1 | 0 | 梵雅葡萄酒品尝套餐 |
0.0000 | 87 | 6 | 2 | 1 | 0 | 0 | 0 | 1 | 0 |
执行完上面之后,开始循序goods_list ;
**************************************************
select sum(og.number) as number from fanwe_order as o left join fanwe_order_goods as og on og.order_id = o.id where og.rec_id = 88 and (o.money_status = 2 or o.goods_status=2)
number |
7 |
$goods['buy_count'] = 7
**************************************************
打印order_vo