Commit 3c965e4d authored by zhuwei's avatar zhuwei

1

parent 689ad6ca
......@@ -302,7 +302,7 @@ class OReportModel extends Model
//商铺地址
if (!empty($params['internal_address'])) {
$conditions[] = "aaa.internal_address = {$params['internal_address']}" ;
$conditions[] = "aaa.internal_address LIKE '%".$params['internal_address']."%'";
}
//商铺ID
......@@ -321,10 +321,9 @@ class OReportModel extends Model
if ($conditions) {
$where_params = 'WHERE ' . implode(" AND ", $conditions);
}
//
// dump($where_params);
// dump($params["type"]);
// exit;
switch ($params["type"]) {
case 2:
$sql = "SELECT * FROM
......@@ -428,8 +427,7 @@ class OReportModel extends Model
$result = $this->db->query($sql);
return $result;
default:
$field = "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,c.internal_address";
$sql = "SELECT * FROM
((SELECT
......@@ -455,6 +453,7 @@ class OReportModel extends Model
AND `b`.`is_del` = 0
) ) as aaa $where_params ORDER BY `create_time` DESC limit $start_index,$pageSize";
$result = $this->db->query($sql);
// dump($sql);
......
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