easy-es icon indicating copy to clipboard operation
easy-es copied to clipboard

Mapper中写default接口实现不能注入调用

Open wangyuanchen opened this issue 1 year ago • 0 comments

`public interface DocumentMapper extends BaseMapper<User> {

default Long selectRegisterCountByBotId(String botId) { List<Integer> status = Arrays.asList(CommonStringConstant.Login.NormalStatus, CommonStringConstant.Login.ApplyStatus, CommonStringConstant.Login.SuccessStatus, CommonStringConstant.Login.FailedStatus); return selectCount(new LambdaEsQueryWrapper<User>() .in(User::getStatus, status) .eq(User::getBotId, botId)); }

}`

如上,能否支持这种编码方式。

wangyuanchen avatar Oct 31 '23 09:10 wangyuanchen