Commit 6c52e954 authored by zhuwei's avatar zhuwei

bug

parent 9d5fd537
......@@ -165,6 +165,9 @@ class Report extends Basic
$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";
if (isset($params["report_id"])) {
$params["a.id"] = $params["report_id"];
}
$params["report_agent_id"] = $params["agent_id"];
$result = $this->service_->orderListForPc($field, $params, $pageNo, $pageSize);
......
......@@ -204,6 +204,11 @@ class OReportModel extends Model
$conditions[] = "aaa.user_phone LIKE '%".$params['user_phone']."%'";
}
if (!empty($params['report_id'])) {
$conditions[] = "aaa.order_id =".$params['report_id'];
}
#组装搜索where条件
if ($conditions) {
$where_params = 'WHERE ' . implode(" AND ", $conditions);
......@@ -361,7 +366,7 @@ class OReportModel extends Model
$house_ids = $params["house_ids"];
}
//todo 约带看时间 开始 结束
// 约带看时间 开始 结束
if (!empty($params['create_time_start']) && !empty($params['create_time_end'])) {
$conditions[] = "aaa.create_time BETWEEN '".$params['create_time_start']. " 00:00:00' AND '" .$params['create_time_end'] . " 23:59:59'";
}
......@@ -375,15 +380,19 @@ class OReportModel extends Model
if (!empty($params['report_agent_phone'])) {
$conditions[] = "aaa.report_agent_phone LIKE '%".$params['report_agent_phone']."%'";
}
//todo 商铺名
// 商铺名
if (!empty($params['house_title'])) {
$conditions[] = "aaa.house_title LIKE '%".$params['house_title']."%'";
}
//todo 客户手机号
// 客户手机号
if (!empty($params['user_phone'])) {
$conditions[] = "aaa.user_phone LIKE '%".$params['user_phone']."%'";
}
if (!empty($params['report_id'])) {
$conditions[] = "aaa.order_id =".$params['report_id'];
}
#组装搜索where条件
if ($conditions) {
$where_params = 'WHERE ' . implode(" AND ", $conditions);
......
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