diff --git a/DM_Weight/Report/GridReportUtil.cs b/DM_Weight/Report/GridReportUtil.cs index d8efd9a..7efcfce 100644 --- a/DM_Weight/Report/GridReportUtil.cs +++ b/DM_Weight/Report/GridReportUtil.cs @@ -346,7 +346,7 @@ namespace DM_Weight.Report inner join drug_info di on dm.drug_id=di.drug_id where dm.type=32 and dm.machine_id = '{p_machine_id}' and dm.operation_time>'{p_startDate}' and dm.operation_time<'{p_endDate}'"; - SQL += " order by dm.operation_time,di.drug_id"; + SQL += " order by di.drug_iddm.operation_time,"; Report.DetailGrid.Recordset.ConnectionString = gridConnectionString; Report.DetailGrid.Recordset.QuerySQL = SQL;