shish 3 years ago
parent
commit
eb44745f7f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app-ghs/controllers/OrderClearController.php

+ 5 - 0
app-ghs/controllers/OrderClearController.php

@@ -37,6 +37,11 @@ class OrderClearController extends BaseController
         $custom = CustomClass::getById($customId, true);
         CustomClass::valid($custom, $this->shopId);
 
+        $info = OrderClearClass::getByCondition(['customId' => $customId, 'status' => 1], true);
+        if (!empty($info)) {
+            util::fail('已有待结账单,请取消或提醒客户付款');
+        }
+
         $where = ['customId' => $customId, 'status' => PurchaseClearClass::STATUS_AWAIT_PAY];
 
         $searchTime = $post['searchTime'] ?? '';