Commit 012b1e0f authored by clone's avatar clone

1

parent 29617517
......@@ -427,7 +427,9 @@ class OfficeOReportModel extends Model
$result = $this->db->query($sql);
return $result;
default:
$filed = "a.id,a.user_id,a.report_agent_name,a.report_agent_phone,a.user_phone,a.user_name,a.predict_see_time,a.create_time,b.id as order_id,b.order_no,b.house_id,b.house_title,c.province,c.city,c.disc,c.internal_address";
$filed = "a.id,a.user_id,a.report_agent_name,a.report_agent_phone,a.user_phone,a.user_name,a.predict_see_time,
a.create_time,b.id as order_id,b.order_no,b.house_id,b.house_title,c.province,c.city,c.disc,
CONCAT(d.address,c.room_number) internal_address";
$sql = "SELECT * FROM
((SELECT
......@@ -435,7 +437,8 @@ class OfficeOReportModel extends Model
FROM
`office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id`
LEFT JOIN `office_g_houses` `c` ON `b`.`house_id` = `c`.`id`
LEFT JOIN `office_g_room` `c` ON `b`.`house_id` = `c`.`id`
LEFT JOIN `office_g_building` `d` ON `d`.`id` = `c`.`building_id`
WHERE
$report_agent_str
AND `a`.`status` = 0
......@@ -446,7 +449,8 @@ class OfficeOReportModel extends Model
FROM
`office_o_report` `a`
LEFT JOIN `office_o_order` `b` ON `a`.`id` = `b`.`f_id`
LEFT JOIN `office_g_houses` `c` ON `b`.`house_id` = `c`.`id`
LEFT JOIN `office_g_room` `c` ON `b`.`house_id` = `c`.`id`
LEFT JOIN `office_g_building` `d` ON `d`.`id` = `c`.`building_id`
WHERE
$house_str
AND `a`.`status` = 0
......
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