public class ResultPreciseShardingAlgorithm implements PreciseShardingAlgorithm[I] {
@Override
public String doSharding(Collection collection, PreciseShardingValue[I] preciseShardingValue) {
try {
Integer id = preciseShardingValue.getValue();
if (id
在我想查询某张表中的数据时,首先想到的就是根据 id 比较
public Result testSj(){
LambdaQueryWrapper[I] wrapper = new LambdaQueryWrapper();
wrapper.ge(InspectionResult::getId, 8000000);
return Result.ok(inspectionResultMapper.selectList(wrapper));
}
但是它报错了
Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Method queryTotal execution error of sql :
SELECT COUNT(1) FROM inspection_result WHERE (id >= ?)
搜了很多都没找到解释,有没有大佬解释下原因? shareding jdbc 版本 4.1.1
error, integer, return, public