|
@@ -432,13 +432,13 @@ class User extends Api |
|
@@ -432,13 +432,13 @@ class User extends Api |
432
|
->alias('a')
|
432
|
->alias('a')
|
433
|
->join('user u', 'u.id=a.user_id')
|
433
|
->join('user u', 'u.id=a.user_id')
|
434
|
->join('vip v', 'v.id=a.vip_id')
|
434
|
->join('vip v', 'v.id=a.vip_id')
|
435
|
- ->field('a.id,v.title,v.price,a.status,a.createtime,u.address,u.address_con,u.car_num,u.color,u.car_type')
|
435
|
+ ->field('a.id,a.order_sn,v.title,v.price,a.status,a.createtime,u.address,u.address_con,u.car_num,u.color,u.car_type')
|
436
|
->select();
|
436
|
->select();
|
437
|
$count = Db::name('order')->where($map)->where('user_id', $user_id)->order('id desc')
|
437
|
$count = Db::name('order')->where($map)->where('user_id', $user_id)->order('id desc')
|
438
|
->alias('a')
|
438
|
->alias('a')
|
439
|
->join('user u', 'u.id=a.user_id')
|
439
|
->join('user u', 'u.id=a.user_id')
|
440
|
->join('vip v', 'v.id=a.vip_id')
|
440
|
->join('vip v', 'v.id=a.vip_id')
|
441
|
- ->field('a.id,v.title,v.price,a.status,a.createtime,u.address,u.address_con,u.car_num,u.color,u.car_type')
|
441
|
+ ->field('a.id,a.order_sn,v.title,v.price,a.status,a.createtime,u.address,u.address_con,u.car_num,u.color,u.car_type')
|
442
|
->select();
|
442
|
->select();
|
443
|
if (empty($rult)) {
|
443
|
if (empty($rult)) {
|
444
|
$List = [
|
444
|
$List = [
|
|
@@ -448,6 +448,7 @@ class User extends Api |
|
@@ -448,6 +448,7 @@ class User extends Api |
448
|
} else {
|
448
|
} else {
|
449
|
foreach ($rult as $k => $v) {
|
449
|
foreach ($rult as $k => $v) {
|
450
|
$list[$k]['id'] = $v['id'];
|
450
|
$list[$k]['id'] = $v['id'];
|
|
|
451
|
+ $list[$k]['order_sn'] = $v['order_sn'];
|
451
|
$list[$k]['title'] = $v['title'];
|
452
|
$list[$k]['title'] = $v['title'];
|
452
|
$list[$k]['price'] = $v['price'];
|
453
|
$list[$k]['price'] = $v['price'];
|
453
|
$list[$k]['status'] = $v['status'];
|
454
|
$list[$k]['status'] = $v['status'];
|