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
8ccd4a14
Commit
8ccd4a14
authored
Apr 24, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转铺列表跟进
parent
236bde81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Transfer.php
application/index/controller/Transfer.php
+4
-3
No files found.
application/index/controller/Transfer.php
View file @
8ccd4a14
...
@@ -10,6 +10,7 @@ namespace app\index\controller;
...
@@ -10,6 +10,7 @@ namespace app\index\controller;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\model\AAgents
;
use
app\model\AdminModel
;
use
app\model\AdminModel
;
use
app\model\FollowUp
;
use
app\model\FollowUp
;
use
app\model\SubletModel
;
use
app\model\SubletModel
;
...
@@ -139,7 +140,7 @@ class Transfer extends Basic
...
@@ -139,7 +140,7 @@ class Transfer extends Basic
$follow
->
save
([
$follow
->
save
([
'content'
=>
$params
[
'content'
],
'content'
=>
$params
[
'content'
],
'sublet_id'
=>
$params
[
'id'
],
'sublet_id'
=>
$params
[
'id'
],
'admin_id'
=>
Session
::
get
(
'userId'
)
,
'admin_id'
=>
$this
->
userId
,
'create_time'
=>
date
(
'Y-m-d H:i:s'
),
'create_time'
=>
date
(
'Y-m-d H:i:s'
),
'type'
=>
$params
[
'type'
]
'type'
=>
$params
[
'type'
]
]);
]);
...
@@ -166,14 +167,14 @@ class Transfer extends Basic
...
@@ -166,14 +167,14 @@ class Transfer extends Basic
if
(
$params
[
'id'
])
{
if
(
$params
[
'id'
])
{
$follow
=
new
FollowUp
();
$follow
=
new
FollowUp
();
$
users
=
new
AdminModel
();
$
agent
=
new
AAgents
();
$list
=
$follow
->
where
([
$list
=
$follow
->
where
([
'sublet_id'
=>
$params
[
'id'
],
'sublet_id'
=>
$params
[
'id'
],
'type'
=>
$params
[
'type'
]
'type'
=>
$params
[
'type'
]
])
->
select
();
])
->
select
();
foreach
(
$list
as
$k
=>
$v
)
{
foreach
(
$list
as
$k
=>
$v
)
{
$data
[
'data'
][
$k
]
=
$v
;
$data
[
'data'
][
$k
]
=
$v
;
$data
[
'data'
][
$k
][
'admin_name'
]
=
$
users
->
field
(
'name'
)
->
find
()[
'name'
]
;
$data
[
'data'
][
$k
][
'admin_name'
]
=
$
agent
->
getAgentsById
(
$v
[
'admin_id'
],
'name'
)
;
}
}
}
else
{
}
else
{
...
...
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