We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** * 通用Mapper接口,特殊方法,批量插入,支持批量插入的数据库都可以使用,例如mysql,h2等 * * @param <T> 不能为空 * @author liuzh */ @tk.mybatis.mapper.annotation.RegisterMapper public interface InsertListMapper<T> { /** * 批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含`id`属性并且必须为自增列 * * @param recordList * @return */ @Options(useGeneratedKeys = true, keyProperty = "id") @InsertProvider(type = SpecialProvider.class, method = "dynamicSQL") int insertList(List<T> recordList); }
这个接口能否改为
int insertList(List<? extends T> recordList);
这样在批量插入子类时会比较方便
The text was updated successfully, but these errors were encountered:
已修改。
Sorry, something went wrong.
6d157e2
No branches or pull requests
这个接口能否改为
这样在批量插入子类时会比较方便
The text was updated successfully, but these errors were encountered: