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
66a631c2
Commit
66a631c2
authored
Jun 11, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人详情头像
parent
9e93716f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
AAgents.php
application/model/AAgents.php
+1
-2
No files found.
application/model/AAgents.php
View file @
66a631c2
...
@@ -849,7 +849,6 @@ class AAgents extends BaseModel
...
@@ -849,7 +849,6 @@ class AAgents extends BaseModel
if
(
$id
)
{
if
(
$id
)
{
$result
=
$this
->
field
(
'id,name as realname,create_time,img,store_id'
)
->
find
(
$id
);
$result
=
$this
->
field
(
'id,name as realname,create_time,img,store_id'
)
->
find
(
$id
);
$result
[
'head_portrait'
]
=
'user_header/'
.
$result
[
'img'
];
//头像
$evaluate_grade
=
Db
::
table
(
'u_evaluate'
)
$evaluate_grade
=
Db
::
table
(
'u_evaluate'
)
->
field
(
'sum(evaluate_grade) as evaluate_grade, count(*) as evaluate_num'
)
->
field
(
'sum(evaluate_grade) as evaluate_grade, count(*) as evaluate_num'
)
->
where
(
'agents_id'
,
$id
)
->
where
(
'is_show'
,
0
)
->
find
();
->
where
(
'agents_id'
,
$id
)
->
where
(
'is_show'
,
0
)
->
find
();
...
@@ -867,7 +866,7 @@ class AAgents extends BaseModel
...
@@ -867,7 +866,7 @@ class AAgents extends BaseModel
$result
[
'watch_shop'
]
=
Db
::
table
(
'u_appoint_watch_shop'
)
$result
[
'watch_shop'
]
=
Db
::
table
(
'u_appoint_watch_shop'
)
->
where
(
'agents_id'
,
$id
)
->
count
();
//看铺
->
where
(
'agents_id'
,
$id
)
->
count
();
//看铺
$result
[
'head_portrait'
]
=
AGENTHEADERIMGURL
.
$result
[
'
head_portrait
'
];
$result
[
'head_portrait'
]
=
AGENTHEADERIMGURL
.
$result
[
'
img
'
];
$bargain
=
new
OBargainModel
();
$bargain
=
new
OBargainModel
();
$result
[
'JournalAccounts'
]
=
$bargain
->
ifBargainNumByOrderId
([
'agent_id'
=>
$id
]);
//成交记录
$result
[
'JournalAccounts'
]
=
$bargain
->
ifBargainNumByOrderId
([
'agent_id'
=>
$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