yanzai 4 months ago
parent 8259f3f8e4
commit 44f6fd3a60

@ -1409,7 +1409,10 @@ class OrderController extends Controller
public function BatchCancel() public function BatchCancel()
{ {
$WaitingPaymentTime = config('app.globals.WaitingPaymentTime');//支付等待時間 $WaitingPaymentTime = config('app.globals.WaitingPaymentTime');//支付等待時間
$orderInfos = DB::table('orders')->where(['status' => 1])->get(); $orderInfos = DB::table('orders')
->where(['status' => 1])
->where('source', 'not like', '%线下体检预约%')
->get();
foreach ($orderInfos as $k => $orderInfo) { foreach ($orderInfos as $k => $orderInfo) {
$person = DB::table('web_user_person')->where(['id' => $orderInfo->person_id])->first(); $person = DB::table('web_user_person')->where(['id' => $orderInfo->person_id])->first();
$datetime = new DateTime($orderInfo->created_at); $datetime = new DateTime($orderInfo->created_at);

@ -21,7 +21,7 @@ function HunJianOrderReFund($order_id)
function HunJianOrderCheck() function HunJianOrderCheck()
{ {
$db = Db::get(); $db = Db::get();
$hunjian_check= $db->getRow("select * from orders where checkup_type_id = 4 and (title='男性免费婚检' or title='女性免费婚检') $hunjian_check= $db->getRow("select * from orders where checkup_type_id = 4 and (title='男性免费婚检(双方)' or title='女性免费婚检(双方)')
and status = 2 and status = 2
and appointment_number is not null and appointment_number is not null
and hunjian_status=0 and hunjian_status=0

Loading…
Cancel
Save