方维二次开发

wangtongphp

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

 

方维团购系统 ,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

 

posted on 2013-06-22 07:44  方维二次开发  阅读(365)  评论(0编辑  收藏  举报