lige
2023-12-11 58bd4f3a3a2a45544203ab605836667c4af38d76
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.ltkj.hosp.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltkj.common.annotation.DataSource;
import com.ltkj.common.enums.DataSourceType;
import com.ltkj.hosp.domain.SqlTest;
import com.ltkj.hosp.domain.TjAdvice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
 
/**
 * @Company: 西安路泰科技有限公司
 * @Author: lige
 * @Date: 2023/12/11 14:51
 */
@Mapper
public interface TestMapper extends BaseMapper<SqlTest> {
    @DataSource(value = DataSourceType.SLAVE)
    @Select("select * from City where id=1")
    public SqlTest getList();
}