Commit 5d34422e by guanzhenshan

增加排序

parent cb7d309b
......@@ -4326,6 +4326,11 @@ group by currency";
sqlparam.Add("val", colval);
}
if (!string.IsNullOrEmpty(parameter.sort))
{
sql += " order by " + parameter.sort + " " + parameter.order;
}
using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString))
{
if (cn.State == ConnectionState.Closed)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment