条件构造器:
QueryWrapper<Entity> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("second_level_category", secondLevelCategoryId);
其中,Entity是您要查询的实体类,second_level_category是实体类中的字段名,secondLevelCategoryId是您要查询的值。
例如:queryWrapper.eq("second_level_category", secondLevelCategoryId)是MyBatis Plus中构建查询条件的一种方式。其中,queryWrapper是一个QueryWrapper对象,用于构建查询条件。eq()方法表示查询条件为等于,第一个参数"second_level_category"是要查询的字段名,第二个参数secondLevelCategoryId是要查询的值。这段代码的作用是查询second_level_category字段等于secondLevelCategoryId的记录。