diff --git a/diboot-core/src/main/java/com/diboot/core/controller/BaseController.java b/diboot-core/src/main/java/com/diboot/core/controller/BaseController.java index e65fdde..dcab3f9 100644 --- a/diboot-core/src/main/java/com/diboot/core/controller/BaseController.java +++ b/diboot-core/src/main/java/com/diboot/core/controller/BaseController.java @@ -59,6 +59,9 @@ public class BaseController { * @return */ public QueryWrapper buildQueryWrapper(DTO entityOrDto) throws Exception{ + if(entityOrDto instanceof HttpServletRequest){ + throw new Exception("参数错误:buildQueryWrapper()参数为Entity/DTO对象!"); + } return QueryBuilder.toQueryWrapper(entityOrDto); } @@ -69,6 +72,9 @@ public class BaseController { * @return */ public LambdaQueryWrapper buildLambdaQueryWrapper(DTO entityOrDto) throws Exception{ + if(entityOrDto instanceof HttpServletRequest){ + throw new Exception("参数错误:buildQueryWrapper()参数为Entity/DTO对象!"); + } return QueryBuilder.toLambdaQueryWrapper(entityOrDto); }