|
@@ -890,8 +890,8 @@ public function doPageMyOrder(){
|
|
$sql="select * from " . tablename("zh_jdgjb_order") .$where." order by id desc ";
|
|
$sql="select * from " . tablename("zh_jdgjb_order") .$where." order by id desc ";
|
|
$select_sql=$sql." LIMIT " .($pageindex - 1) * $pagesize.",".$pagesize;
|
|
$select_sql=$sql." LIMIT " .($pageindex - 1) * $pagesize.",".$pagesize;
|
|
$list=pdo_fetchall($select_sql,$data);
|
|
$list=pdo_fetchall($select_sql,$data);
|
|
- foreach($list as $key=>$val){
|
|
|
|
- $list[$key]['count']=pdo_fetchcolumn("SELECT count(*) FROM ".tablename('zh_jdgjb_order') .$where.' and id<='.$val['id'].' and user_id='.$val['user_id'] ,$data)?:0;
|
|
|
|
|
|
+ foreach($list as $key => $val){
|
|
|
|
+ $list[$key]['count'] = pdo_fetchcolumn("SELECT count(*) FROM ".tablename('zh_jdgjb_order') .$where.' and id<='.$val['id'].' and user_id='.$val['user_id'] ,$data)?:0;
|
|
$conf = pdo_get('zh_jdgjb_seller',array('id'=>$val['seller_id']));
|
|
$conf = pdo_get('zh_jdgjb_seller',array('id'=>$val['seller_id']));
|
|
$list[$key]['re_pay_money'] = $conf['re_pay_money'];
|
|
$list[$key]['re_pay_money'] = $conf['re_pay_money'];
|
|
}
|
|
}
|