String sql = "";标签:语句,SqlMapClientImpl,SqlMapClient,System,stmt,statementScope,ibatis,sql From: https://www.cnblogs.com/xiao1993/p/16996361.html
SqlMapClientImpl sqlmap = (SqlMapClientImpl)getSqlMapClient();
MappedStatement stmt = sqlmap.getMappedStatement("UupmUser.selectUsersPgnCountByCause");
Sql stmtSql = stmt.getSql();
RequestScope statementScope = new RequestScope();
statementScope.setStatement(stmt);
sql = stmtSql.getSql(statementScope, cause);
System.out.println("参数role_id:"+cause.getRole_id());
System.out.println("sql语句是:"+sql);