【类 型】:fix

【原  因】:
【过  程】:订单列表 接口取列表时候 添加两个新字段  ‘打包费’ ‘运费’
【影  响】:
This commit is contained in:
air 2025-01-15 17:34:57 +08:00
parent edb518f552
commit 7593943806

View File

@ -739,7 +739,8 @@ class AdminController extends PublicController
$paidOrderList = $orderDb $paidOrderList = $orderDb
->alias('o') // 别名为 o ->alias('o') // 别名为 o
->join('lr_receive_site rs ON o.receive_site_id = rs.id') // 关联 lr_receive_site 表 ->join('lr_receive_site rs ON o.receive_site_id = rs.id') // 关联 lr_receive_site 表
->field('o.id,o.shop_id,o.order_sn,o.food_sn,o.total_weight,o.total_num,o.total_price,o.apply_price,o.receiver,o.tel,o.by_plane_id,o.receive_site_id,o.receive_site_name,o.remark,o.product_snapshot,o.main_status,o.shipment_status,o.refund_status,o.refund_remark,o.order_time,o.paid_time,o.refundapply_time,o.received_time,o.shipped_time, rs.bind_route, rs.runing') // 选择字段,包括 bind_route 和 runing ->field('o.id,o.
shop_id,o.order_sn,o.food_sn,o.total_weight,o.total_num,o.total_price,.transport_price,pack_price,o.apply_price,o.receiver,o.tel,o.by_plane_id,o.receive_site_id,o.receive_site_name,o.remark,o.product_snapshot,o.main_status,o.shipment_status,o.refund_status,o.refund_remark,o.order_time,o.paid_time,o.refundapply_time,o.received_time,o.shipped_time, rs.bind_route, rs.runing') // 选择字段,包括 bind_route 和 runing
->where($where) ->where($where)
->select(); ->select();
@ -812,7 +813,7 @@ class AdminController extends PublicController
} }
} }
} }
$field = array('id', 'order_sn', 'tel', 'total_price', 'refund_price', 'main_status', 'shipment_status', 'refund_status', 'order_time'); $field = array('id', 'order_sn', 'tel', 'total_price', 'transport_price', 'pack_price', 'refund_price', 'main_status', 'shipment_status', 'refund_status', 'order_time');
$orderDb = D('order'); $orderDb = D('order');
$orderList = $orderDb->where($where)->field($field)->select(); $orderList = $orderDb->where($where)->field($field)->select();
echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderList' => $orderList)); echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderList' => $orderList));
@ -830,7 +831,7 @@ class AdminController extends PublicController
if ($_REQUEST['id']) { if ($_REQUEST['id']) {
$where['id'] = $_REQUEST['id']; $where['id'] = $_REQUEST['id'];
$orderDb = D('order'); $orderDb = D('order');
$field = array('id', 'order_sn', 'food_sn', 'total_weight', 'total_num', 'total_price', 'refund_price', 'apply_price', 'receiver', 'tel', 'by_plane_id', 'receive_site_id', 'receive_site_name', 'remark', 'product_snapshot', 'main_status', 'shipment_status', 'refund_status', 'refund_remark', 'canceled_time', 'order_time', 'paid_time', 'refunded_time', 'completed_time', 'received_time', 'shipped_time', 'delivered_time', 'refundapply_time', 'rejected_time', 'describe'); $field = array('id', 'order_sn', 'food_sn', 'total_weight', 'total_num', 'total_price', 'transport_price', 'pack_price', 'refund_price', 'apply_price', 'receiver', 'tel', 'by_plane_id', 'receive_site_id', 'receive_site_name', 'remark', 'product_snapshot', 'main_status', 'shipment_status', 'refund_status', 'refund_remark', 'canceled_time', 'order_time', 'paid_time', 'refunded_time', 'completed_time', 'received_time', 'shipped_time', 'delivered_time', 'refundapply_time', 'rejected_time', 'describe');
if ($orderDetails = $orderDb->where($where)->field($field)->find()) { if ($orderDetails = $orderDb->where($where)->field($field)->find()) {
echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderDetails' => $orderDetails)); echo json_encode(array('status' => 1, 'msg' => '访问成功', 'orderDetails' => $orderDetails));
} else { } else {