Commit 303435da authored by zhuwei's avatar zhuwei

优化

parent a94bb451
...@@ -296,7 +296,7 @@ class OReportModel extends Model ...@@ -296,7 +296,7 @@ class OReportModel extends Model
//城市 //城市
if (!empty($params['city'])) { if (!empty($params['city'])) {
$conditions[] = "aaa.city = {$params['city']}" ; $conditions[] = "aaa.city = '{$params['city']}'" ;
} }
...@@ -617,6 +617,8 @@ class OReportModel extends Model ...@@ -617,6 +617,8 @@ class OReportModel extends Model
$result = $this->db->query($sql); $result = $this->db->query($sql);
return $result; return $result;
default: 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";
$sql = "SELECT count(1) as total FROM $sql = "SELECT count(1) as total FROM
((SELECT ((SELECT
$filed $filed
......
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