$conditions[]="aaa.internal_address LIKE '%".$params['internal_address']."%'";
}
}
//商铺ID
//商铺ID
...
@@ -321,10 +321,9 @@ class OReportModel extends Model
...
@@ -321,10 +321,9 @@ class OReportModel extends Model
if($conditions){
if($conditions){
$where_params='WHERE '.implode(" AND ",$conditions);
$where_params='WHERE '.implode(" AND ",$conditions);
}
}
//
// dump($where_params);
// dump($where_params);
// dump($params["type"]);
// dump($params["type"]);
// exit;
switch($params["type"]){
switch($params["type"]){
case2:
case2:
$sql="SELECT * FROM
$sql="SELECT * FROM
...
@@ -428,8 +427,7 @@ class OReportModel extends Model
...
@@ -428,8 +427,7 @@ 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";
$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";
$sql="SELECT * FROM
$sql="SELECT * FROM
((SELECT
((SELECT
...
@@ -455,6 +453,7 @@ class OReportModel extends Model
...
@@ -455,6 +453,7 @@ class OReportModel extends Model
AND `b`.`is_del` = 0
AND `b`.`is_del` = 0
) ) as aaa $where_params ORDER BY `create_time` DESC limit $start_index,$pageSize";
) ) as aaa $where_params ORDER BY `create_time` DESC limit $start_index,$pageSize";