From 6381bb6b6422c23ee4801895019f1a432903fbe8 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期四, 10 七月 2025 14:58:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- smartor/src/main/java/com/smartor/mapper/PatMedOuthospMapper.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 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 ddd332c..8a00b1b 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�呴棬璇婅褰� * @@ -66,4 +69,39 @@ 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 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