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
c3ef0c8a
Commit
c3ef0c8a
authored
Mar 22, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
普通跟进,对客户状态进行更新
parent
0cbf23f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
Broker.php
application/api_broker/controller/Broker.php
+11
-6
Users.php
application/model/Users.php
+7
-0
No files found.
application/api_broker/controller/Broker.php
View file @
c3ef0c8a
...
...
@@ -137,17 +137,22 @@ class Broker extends Basic
$content
=
$params
[
'content'
];
$labels_id
=
empty
(
$params
[
'labels_id'
])
?
''
:
$params
[
'labels_id'
];
$user_id
=
$params
[
'user_id'
];
$agent_id
=
$params
[
'agent_id'
];
$type
=
$params
[
'type'
];
$agent_id
=
$params
[
'agent_id'
];
$type
=
$params
[
'type'
];
//0电话跟进 1普通跟进
//主表查询商铺详细信息
$UPhoneFollowPp
=
new
UPhoneFollowPp
();
$UPhoneFollowPp
->
content
=
$content
;
$UPhoneFollowPp
->
content
=
$content
;
$UPhoneFollowPp
->
labels_id
=
$labels_id
;
$UPhoneFollowPp
->
user_id
=
$user_id
;
$UPhoneFollowPp
->
agent_id
=
$agent_id
;
$UPhoneFollowPp
->
type
=
$type
;
$UPhoneFollowPp
->
user_id
=
$user_id
;
$UPhoneFollowPp
->
agent_id
=
$agent_id
;
$UPhoneFollowPp
->
type
=
$type
;
$UPhoneFollowPp
->
save
();
//dump($UPhoneFollowPp->id);exit;
if
(
$type
==
'1'
){
//普通跟进,对客户状态进行更新 0:求租;1:已租;-1:无效
$Users
=
new
Users
();
$Users
->
update_user_status
([
'id'
=>
$user_id
,
'user_status'
=>
$labels_id
]);
}
if
(
$UPhoneFollowPp
->
id
)
{
return
$this
->
response
(
"200"
,
"success!"
,
$UPhoneFollowPp
->
id
);
...
...
application/model/Users.php
View file @
c3ef0c8a
...
...
@@ -295,4 +295,11 @@ class Users extends Model
->
where
(
$params
)
->
count
();
}
/**
* 普通跟进,对客户状态进行更新
*/
public
function
update_user_status
(
$conditions
=
''
)
{
return
db
(
'u_users'
)
->
update
(
$conditions
);
}
}
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