自定义SQL中如何增加deleted=0过滤条件
public interface UserMapper extends BaseMapper<User>{ @Select("select * from user ${ew.customSqlSegment}") List<User> selectAll(@Param(Constants.WRAPPER) Wrapper<User> wrapper); }
public interface UserMapper extends BaseMapper<User>{ @Select("select * from user ${ew.customSqlSegment}") List<User> selectAll(@Param(Constants.WRAPPER) Wrapper<User> wrapper); }
2021-07-22
举报