Commit 77d4b960 authored by zw's avatar zw

订单搜索

parent 7cdd30a4
<?php
namespace app\api_broker\consts;
/**
* Created by PhpStorm.
* User : zw
* Date : 2018/3/17
* Time : 9:50
* Intro: 公共常量
*/
class ConfigConst
{
const USER_TYPE_A = "A类(成交意愿较强)";
const USER_TYPE_B = "B类(成交意愿中等)";
const USER_TYPE_C = "C类(成交意愿较弱)";
const INDUSTRY_TYPE_FIRST = "轻餐饮";
const INDUSTRY_TYPE_SECOND = "重餐饮";
const INDUSTRY_TYPE_THIRD = "百货零售";
const INDUSTRY_TYPE_FOURTH = "服装";
const INDUSTRY_TYPE_FIFTH = "亲子教育";
const INDUSTRY_TYPE_SIXTH = "休闲娱乐";
const AREA_REQUIREMENT_FIRST = "30平米内";
const AREA_REQUIREMENT_SECOND = "30-60平米";
const AREA_REQUIREMENT_THIRD = "60-100平米";
const AREA_REQUIREMENT_FOURTH = "100平米以上";
const PRICE_REQUIREMENT_FIRST = "月租金10000元以内";
const PRICE_REQUIREMENT_SECOND = "月租金10000-30000元";
const PRICE_REQUIREMENT_THIRD = "月租金30000元以上";
}
\ No newline at end of file
......@@ -212,6 +212,8 @@ class OrderLogService
$followUpLogData = $followUpLogModel->selectFollowUpListByReportId($field_follow_up, [ "report_id" => $report_id ]);
if (count($followUpLogData) > 0) {
foreach ($followUpLogData as $k=>$v){
$v["step_name"] = "follow_up_log";
$result[$sort++] = $v;
}
......@@ -252,6 +254,7 @@ class OrderLogService
return $this->sortByTime($result);
}
/**
* 排序时间
* @param $result
......@@ -298,10 +301,10 @@ class OrderLogService
default:
return ["code"=>"101","msg"=>"搜索类型错误"];
}
if(isset($params["agent_id"])){
$condition["b.report_agent_id"] = array("eq",$params["agent_id"]);
}
if(isset($params["agent_id"])) {
$condition["b.report_agent_id"] = array( "eq", $params["agent_id"] );
}
$orderModel = new OrderModel();
$result = $orderModel->searchOrder($field,$condition);
......
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