fixed: "Every derived table must have its own alias"; close #I7CUE8

This commit is contained in:
开源海哥 2023-06-12 17:26:44 +08:00
parent 48e6495bd1
commit c16c99d72d

View File

@ -50,7 +50,7 @@ public class MapperUtil {
public static QueryWrapper rawCountQueryWrapper(QueryWrapper queryWrapper) {
return QueryWrapper.create()
.select(count().as("total"))
.from(queryWrapper);
.from(queryWrapper).as("t");
}
/**