怎么在Whereclause = is_deleted = 0 下面场景取消这个条件public static T PageResultT queryPageJpaSpecificationExecutor jpaSpecificationExecutor Integer pageNum Integer pageSize SpecificationT specification Sort sort
可以将@Where注解从实体类上移除,或者将其改成一个不会影响查询结果的条件,比如@Where(clause = "1=1")。另外,如果是在Specification中添加的@Where注解,可以将其从Specification中移除。
原文地址: https://www.cveoy.top/t/topic/eF2p 著作权归作者所有。请勿转载和采集!