mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-08 07:29:13 +00:00
避免用户自定义表无默认字段创建时间,导致排序报错
This commit is contained in:
@@ -244,6 +244,7 @@ public class QueryGenerator {
|
||||
//TODO 避免用户自定义表无默认字段创建时间,导致排序报错
|
||||
if(DataBaseConstant.CREATE_TIME.equals(column) && !fieldColumnMap.containsKey(DataBaseConstant.CREATE_TIME)){
|
||||
column = "id";
|
||||
log.warn("检测到实体里没有字段createTime,改成采用ID排序!");
|
||||
}
|
||||
//update-end-author:scott date:2022-11-07 for:避免用户自定义表无默认字段{创建时间},导致排序报错
|
||||
|
||||
|
Reference in New Issue
Block a user