自定义SQL中如何增加deleted=0过滤条件_
public interface UserMapper extends BaseMapper<User>{ @Select("select * from user ${ew.customSqlSegment}") List<User> selectAll(@Param(Constants.WRAPPER) Wrapper<User> wrapper); }
手动加上呀,例如wrapper.eq("deleted",0)
手写😀哈哈