WIN-2308041133\Administrator 4 kuukautta sitten
vanhempi
commit
e411620841

+ 1 - 0
app/api/controller/v1/admin/StoreOrderController.php

@@ -25,6 +25,7 @@ use app\services\order\StoreOrderWapServices;
 use app\services\order\StoreOrderWriteOffServices;
 use app\services\pay\OrderOfflineServices;
 use app\services\serve\ServeServices;
+use app\services\system\store\SystemStoreRecordServices;
 use app\services\system\store\SystemStoreServices;
 use app\services\system\store\SystemStoreStaffServices;
 use app\services\user\UserServices;

+ 13 - 0
app/services/system/store/SystemStoreRecordServices.php

@@ -161,4 +161,17 @@ class SystemStoreRecordServices extends BaseServices
 
         return true;
     }
+
+    /**
+     * 获取用户最新的申请记录
+     * @param int $uid
+     * @return array|\think\Model|null
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
+     */
+    public function getLatestRecord(int $uid)
+    {
+        return $this->dao->getByUid($uid);
+    }
 }