【类 型】:fix 在处理订单表时 给对应操的时间字段 加上时间
【原 因】: 【过 程】:1.已发货 已送达 已接单 拒绝退 2.获取订单列表时field 加上付款时间字段 【影 响】:
This commit is contained in:
parent
f1f5b8a6bc
commit
a7446dc232
@ -731,7 +731,7 @@ class AdminController extends PublicController
|
||||
$paidOrderList = $orderDb
|
||||
->alias('o') // 别名为 o
|
||||
->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.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,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)
|
||||
->select();
|
||||
|
||||
|
@ -592,6 +592,14 @@ class PlaneController extends PublicController
|
||||
}
|
||||
if ($_REQUEST['shipment_status']) {
|
||||
$data['shipment_status'] = htmlspecialchars($_REQUEST['shipment_status']);
|
||||
switch ($data['shipment_status']) {
|
||||
case '已发货':
|
||||
$data['shipped_time'] = time();
|
||||
break;
|
||||
case '已送达':
|
||||
$data['delivered_time'] = time();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ($_REQUEST['refund_status']) {
|
||||
$data['refund_status'] = htmlspecialchars($_REQUEST['refund_status']);
|
||||
@ -648,9 +656,19 @@ class PlaneController extends PublicController
|
||||
}
|
||||
if ($_REQUEST['shipment_status']) {
|
||||
$data['shipment_status'] = htmlspecialchars($_REQUEST['shipment_status']);
|
||||
switch ($data['shipment_status']) {
|
||||
case '已接单':
|
||||
$data['received_time'] = time();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ($_REQUEST['refund_status']) {
|
||||
$data['refund_status'] = htmlspecialchars($_REQUEST['refund_status']);
|
||||
switch ($data['refund_status']) {
|
||||
case '拒绝退':
|
||||
$data['rejected_time'] = time();
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ($_REQUEST['by_plane_id']) {
|
||||
$data['by_plane_id'] = ($_REQUEST['by_plane_id'] == 'null') ? null : intval($_REQUEST['by_plane_id']);
|
||||
|
Loading…
Reference in New Issue
Block a user