mirror of https://github.com/jeecgboot/jeecg-boot
避免用户自定义表无默认字段创建时间,导致排序报错
parent
ec262cff53
commit
91848b98b7
|
@ -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:避免用户自定义表无默认字段{创建时间},导致排序报错
|
||||
|
||||
|
|
Loading…
Reference in New Issue