$Master

1、

SqlCommandType sqlCommandType = mappedStatement.getSqlCommandType();
DataSource routedDataSource;
if (SqlCommandType.SELECT == sqlCommandType){
if(StringUtils.endsWith(mappedStatement.getId(), SUFFIX_USE_MASTER)) {
routedDataSource = writeDataSource;
logger.debug("Force use writeDataSource for {}: {}", sqlCommandType, routedDataSource);
} else {
routedDataSource = loadBalancer.select(readDataSources, mappedStatement, parameter);
logger.debug("Select readDataSource for {}: {}", sqlCommandType, routedDataSource);
}
} else {
routedDataSource = writeDataSource;
logger.debug("Select writeDataSource for {}: {}", sqlCommandType, routedDataSource);
}

/**
* 获取时间戳
*
* @param userId
* @return
*/
GuizuExpStamp getByUserId$Master(@Param("userId") int userId);


<!-- 获取贵族经验时间戳 -->
<select id="getByUserId$Master" parameterType="int"
resultMap="guizuExpStampResultMap">
select *
from
t_guizu_exp_stamp
where fk_user = #{userId}
</select>


2、
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值