springboot Mybatis 动态传入 表名

@Select("select trade_id from ${tableName} where id =(select max(id) from ${tableName} );")
public Long getNewMinTradeId(@Param("tableName") String tableName);
dtoMapper.getNewMinTradeId("表名");

你可能感兴趣的:(mybatis-plus,mybatis,spring,boot,java)