public static string GetMappedStaticSql(string sqlName) { SqlItem item = GetMappedStatement(sqlName); if (item == null) { return(sqlName); } return(item.dynamic(null)); }
private static string ParseDynamicSql(string mapSql, IDictionary <string, object> p, IDictionary <string, string> where) { SqlItem info = StatementParser.GetMappedStatement(mapSql); if (info == null) { return(mapSql); } return(info.dynamic(p));//会修改参数p的列表 }