From 3bbd80a63ac7728ac01b641a48a26befcb171a0f Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期一, 15 十二月 2025 07:19:21 +0800
Subject: [PATCH] feat:增加企业微信登录判断

---
 app/api/hospital.js |   64 ++++++++++++++++++++++++++++++-
 1 files changed, 61 insertions(+), 3 deletions(-)

diff --git a/app/api/hospital.js b/app/api/hospital.js
index 0607054..39e474f 100644
--- a/app/api/hospital.js
+++ b/app/api/hospital.js
@@ -2,14 +2,18 @@
 
 /**
  * 鎼滅储鍖婚櫌
- * @param {string} keyword 鎼滅储鍏抽敭璇嶏紙鍖婚櫌鍚嶇О鎴栧湴鍧�锛�
+ * @param {string} keyword 鎼滅储鍏抽敭璇嶏紙鍖婚櫌鍚嶇О銆佸湴鍧�銆佺畝绉般�佺渷甯傚尯锛�
+ * @param {number} deptId 閮ㄩ棬ID锛堢敤浜庢牴鎹儴闂ㄥ尯鍩熼厤缃繃婊ゅ尰闄級
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛屽湪鍓嶇澶勭悊锛�
  */
-export function searchHospitals(keyword) {
+export function searchHospitals(keyword, deptId, limit = 50) {
   return request({
     url: '/system/hospital/search',
     method: 'get',
     params: {
-      keyword: keyword
+      keyword: keyword,
+      deptId: deptId,
+      pageSize: limit
     }
   })
 }
@@ -27,3 +31,57 @@
     }
   })
 }
+
+/**
+ * 鑾峰彇甯哥敤杞嚭鍖婚櫌鍒楄〃
+ * @param {string} serviceOrdClass 鍒嗗叕鍙哥紪鐮侊紙service_order_class锛�
+ * @param {string} region 鍦板煙鍏抽敭璇嶏紙鍙�夛級
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛�
+ */
+export function getFrequentOutHospitals(serviceOrdClass, region, limit = 50) {
+  return request({
+    url: '/system/hospital/frequent/out',
+    method: 'get',
+    params: {
+      serviceOrdClass: serviceOrdClass,
+      region: region,
+      pageSize: limit
+    }
+  })
+}
+
+/**
+ * 鑾峰彇甯哥敤杞叆鍖婚櫌鍒楄〃
+ * @param {string} serviceOrdClass 鍒嗗叕鍙哥紪鐮侊紙service_order_class锛�
+ * @param {string} region 鍦板煙鍏抽敭璇嶏紙鍙�夛級
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛�
+ */
+export function getFrequentInHospitals(serviceOrdClass, region, limit = 50) {
+  return request({
+    url: '/system/hospital/frequent/in',
+    method: 'get',
+    params: {
+      serviceOrdClass: serviceOrdClass,
+      region: region,
+      pageSize: limit
+    }
+  })
+}
+
+/**
+ * 鏍规嵁閮ㄩ棬鍖哄煙閰嶇疆鎼滅储鍖婚櫌锛堟敮鎸佸绾у尯鍩燂級
+ * @param {string} keyword 鎼滅储鍏抽敭璇�
+ * @param {number} deptId 閮ㄩ棬ID
+ * @param {number} limit 杩斿洖缁撴灉鏁伴噺闄愬埗锛堥粯璁�50锛屽湪鍓嶇澶勭悊锛�
+ */
+export function searchHospitalsByDeptRegion(keyword, deptId, limit = 50) {
+  return request({
+    url: '/system/hospital/search/by-dept-region',
+    method: 'get',
+    params: {
+      keyword: keyword,
+      deptId: deptId,
+      pageSize: limit
+    }
+  })
+}

--
Gitblit v1.9.1