Commit de87c581 authored by clone's avatar clone

bug

parent a2e261c1
......@@ -537,6 +537,7 @@ class OReportModel extends Model
a.user_id,
a.report_agent_id AS agents_id,
a.predict_see_time AS expect_time,
a.create_time,
`b`.`house_id`,
d.external_title AS house_title,
d.residue_num AS room_num_left,
......@@ -559,6 +560,7 @@ class OReportModel extends Model
a.agents_id,
a.expect_time,
a.house_id,
a.create_time,
b.external_title AS house_title,
b.residue_num AS room_num_left,
b.is_show,
......@@ -570,7 +572,7 @@ class OReportModel extends Model
a.user_id = $user_id
and a.agents_id IS NULL
and a.status in (0,1)
) ) as aaa limit $start_index,$pageSize";
) ) as aaa order by aaa.create_time desc limit $start_index,$pageSize";
//echo $sql;
$data = $this->db->query($sql);
return $data;
......
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