Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
d200ed19
Commit
d200ed19
authored
Dec 24, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent_id
parent
ac4c66f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
19 deletions
+12
-19
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+5
-0
Remark.php
application/index/controller/Remark.php
+7
-19
No files found.
application/api_broker/controller/HomePageLog.php
View file @
d200ed19
...
...
@@ -208,6 +208,11 @@ class HomePageLog extends Basic
$where_
[
"a.store_id"
]
=
$params
[
"store_id"
];
}
//经纪人id
if
(
!
empty
(
$params
[
"agent_id"
])
&&
!
empty
(
$params
[
"agent_id"
]))
{
$where_
[
"a.agent_id"
]
=
$params
[
"agent_id"
];
}
if
(
!
empty
(
$params
[
"name_or_phone"
]))
{
if
((
preg_match
(
"/^1\d
{
10
}
$/"
,
$params
[
'name_or_phone'
])
==
1
))
{
$agent_params
[
"phone"
]
=
array
(
"eq"
,
trim
(
$params
[
"name_or_phone"
])
);
...
...
application/index/controller/Remark.php
View file @
d200ed19
...
...
@@ -67,17 +67,9 @@ class Remark extends Basic
$where
[
'content'
]
=
[
'LIKE'
,
"%
{
$this
->
params
[
'content'
]
}
%"
];
}
//跟进人名字
if
(
!
empty
(
$this
->
params
[
'remark_name'
]))
{
if
(
mb_strlen
(
$this
->
params
[
'remark_name'
])
<
2
)
{
return
$this
->
response
(
101
,
'名字长度不足2位'
);
}
$agent_where
[
'name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'remark_name'
]
.
'%'
];
}
//跟进人手机号
if
(
!
empty
(
$this
->
params
[
'remark_phone'
]))
{
$agent_where
[
'phone'
]
=
$this
->
params
[
'remark_phone'
];
//跟进人id
if
(
!
empty
(
$this
->
params
[
'agent_id'
]))
{
$agent_where
[
'id'
]
=
$this
->
params
[
'agent_id'
];
}
//跟进人门店
...
...
@@ -111,18 +103,14 @@ class Remark extends Basic
}
if
(
!
empty
(
$agent_where
))
{
$m_agent
=
new
AAgents
();
$agent_id
_arr
=
$m_agent
->
getAgentById
(
'id'
,
$agent_where
);
$m_agent
=
new
AAgents
();
$agent_id
=
$m_agent
->
getAgentsByWhere
(
$agent_where
,
'id'
);
if
(
empty
(
$agent_id
_arr
))
{
if
(
empty
(
$agent_id
))
{
$data
[
'data'
][
'list'
]
=
[];
return
$this
->
response
(
200
,
''
,
$data
);
//处理经纪人空数据
}
else
{
$agent_id
=
[];
foreach
(
$agent_id_arr
as
$K
=>
$v
)
{
$agent_id
[]
=
$v
[
'id'
];
}
$where
[
'agent_id'
]
=
[
'in'
,
$agent_id
];
$where
[
'agent_id'
]
=
$agent_id
;
}
}
$field
=
'id,user_id,create_time,content,user_status,labels_id,agent_id as f_agent_id'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment