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 | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 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..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�呴棬璇婅褰� * @@ -66,4 +69,41 @@ 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