Commit 4a982702 authored by clone's avatar clone

bug

parent 1dd55750
...@@ -160,7 +160,7 @@ class OReportModel extends Model ...@@ -160,7 +160,7 @@ class OReportModel extends Model
LEFT JOIN `o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `o_march_in` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `o_march_in` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
`a`.`report_agent_id` IN ($house_ids) `b`.`house_id` IN ($house_ids)
AND `a`.`status` = 0 AND `a`.`status` = 0
AND `b`.`is_del` = 0 AND `b`.`is_del` = 0
GROUP BY GROUP BY
...@@ -196,7 +196,7 @@ class OReportModel extends Model ...@@ -196,7 +196,7 @@ class OReportModel extends Model
LEFT JOIN `o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `o_paylog` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `o_paylog` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
`a`.`report_agent_id` IN ($house_ids) `b`.`house_id` IN ($house_ids)
AND `a`.`status` = 0 AND `a`.`status` = 0
AND `b`.`is_del` = 0 AND `b`.`is_del` = 0
GROUP BY GROUP BY
...@@ -231,7 +231,7 @@ class OReportModel extends Model ...@@ -231,7 +231,7 @@ class OReportModel extends Model
LEFT JOIN `o_order` `b` ON `a`.`id` = `b`.`f_id` LEFT JOIN `o_order` `b` ON `a`.`id` = `b`.`f_id`
RIGHT JOIN `o_bargain` `c` ON `b`.`id` = `c`.`order_id` RIGHT JOIN `o_bargain` `c` ON `b`.`id` = `c`.`order_id`
WHERE WHERE
`a`.`report_agent_id` IN ($house_ids) `b`.`house_id` IN ($house_ids)
AND `a`.`status` = 0 AND `a`.`status` = 0
AND `b`.`is_del` = 0 AND `b`.`is_del` = 0
GROUP BY GROUP BY
......
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