|
@@ -1,7 +1,9 @@
|
|
|
package com.sooka.sponest.data.attach.mapper;
|
|
|
|
|
|
+import com.ruoyi.common.datascope.base.util.database.DynamicDataSourceSwitcher;
|
|
|
import com.sooka.sponest.data.attach.domain.CenterdataTAttach;
|
|
|
import com.sooka.sponest.monitor.base.util.database.MyDataSource;
|
|
|
+import org.springframework.stereotype.Repository;
|
|
|
|
|
|
/**
|
|
|
* 附件Mapper接口
|
|
@@ -9,6 +11,7 @@ import com.sooka.sponest.monitor.base.util.database.MyDataSource;
|
|
|
* @author ruoyi
|
|
|
* @date 2022-06-11
|
|
|
*/
|
|
|
+@Repository
|
|
|
public interface CenterdataTAttachMapper {
|
|
|
|
|
|
/**
|
|
@@ -17,6 +20,6 @@ public interface CenterdataTAttachMapper {
|
|
|
* @param centerdataTAttach 附件
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @MyDataSource("data")
|
|
|
+ @MyDataSource(value = DynamicDataSourceSwitcher.dbCenterData)
|
|
|
int insertCenterdataTAttach(CenterdataTAttach centerdataTAttach);
|
|
|
}
|