From 97a161a5042d9ef92605f306163f040823491f1f Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 10 七月 2025 18:06:46 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/java/com/smartor/mapper/PatMedOuthospMapper.java |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/smartor/src/main/java/com/smartor/mapper/PatMedOuthospMapper.java b/smartor/src/main/java/com/smartor/mapper/PatMedOuthospMapper.java
index c5e0a27..266b9e9 100644
--- a/smartor/src/main/java/com/smartor/mapper/PatMedOuthospMapper.java
+++ b/smartor/src/main/java/com/smartor/mapper/PatMedOuthospMapper.java
@@ -6,6 +6,7 @@
 import com.smartor.domain.PatMedReq;
 import com.smartor.domain.PatMedRes;
 import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
 
 /**
  * 鎮h�呴棬璇婅褰昅apper鎺ュ彛
@@ -39,6 +40,8 @@
      */
     public int insertPatMedOuthosp(PatMedOuthosp patMedOuthosp);
 
+    public int batchPatMedOuthosp(List<PatMedOuthosp> patMedOuthosps);
+
     /**
      * 淇敼鎮h�呴棬璇婅褰�
      *
@@ -64,4 +67,43 @@
     public int deletePatMedOuthospByIds(Long[] ids);
 
     PatMedRes selectPatMedOuthospCount(PatMedReq patMedReq);
+
+    public List<PatMedRes> getDeptRanking(PatMedReq patMedReq);
+
+    /**
+     * 鑾峰彇琛ㄧ殑鏁伴噺
+     *
+     * @return
+     */
+    int countPatMedOuthosp();
+
+    /**
+     * 淇敼琛ㄥ悕
+     *
+     * @return
+     */
+    void renameTable(@Param("oldName") String oldName, @Param("newName") String newName);
+
+    /**
+     * 鍒涘缓鏂拌〃
+     *
+     * @param templateName
+     * @param newName
+     */
+    void createPatMedOuthosp(@Param("templateName") String templateName, @Param("newName") String newName);
+
+    void createPatMedOuthospAutoAdd(@Param("newName") String newName);
+
+
+    void setAutoIncrement(@Param("tableName") String tableName, @Param("autoInc") long autoInc);
+
+    // 鏌ヨ鎵�鏈� pat_med_outhosp 寮�澶寸殑琛ㄥ悕
+    List<String> getAllOuthospTableNames();
+
+    // 鏌ヨ鎸囧畾琛ㄧ殑鏈�澶d
+    Long getMaxIdFromTable(@Param("tableName") String tableName);
+
+    void createOrReplaceView(@Param("viewSql") String viewSql);
 }
+
+

--
Gitblit v1.9.3