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();
|
}
|