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
65a96cfb
Commit
65a96cfb
authored
Aug 10, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收藏客户修改
parent
c241c3ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
CollectUser.php
application/api_broker/controller/CollectUser.php
+4
-7
ACollectUser.php
application/model/ACollectUser.php
+16
-0
No files found.
application/api_broker/controller/CollectUser.php
View file @
65a96cfb
...
@@ -92,7 +92,7 @@ class CollectUser extends Basic
...
@@ -92,7 +92,7 @@ class CollectUser extends Basic
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*$params = array(
/*$params = array(
"agents_id" =>
2,
"agents_id" =>
5740
);*/
);*/
if
(
!
isset
(
$params
[
"agents_id"
]))
{
if
(
!
isset
(
$params
[
"agents_id"
]))
{
...
@@ -118,6 +118,7 @@ class CollectUser extends Basic
...
@@ -118,6 +118,7 @@ class CollectUser extends Basic
$get_params
[
'CollectUser.status'
]
=
1
;
$get_params
[
'CollectUser.status'
]
=
1
;
$res
=
$this
->
aCollectUser
->
getCollectList
(
$pageNo
,
$pageSize
,
$field
,
$get_params
);
$res
=
$this
->
aCollectUser
->
getCollectList
(
$pageNo
,
$pageSize
,
$field
,
$get_params
);
$res_total
=
$this
->
aCollectUser
->
getCollectListTotal
(
$field
,
$get_params
);
foreach
(
$res
as
$k
=>
$v
)
foreach
(
$res
as
$k
=>
$v
)
{
{
$label
=
[];
$label
=
[];
...
@@ -131,14 +132,11 @@ class CollectUser extends Basic
...
@@ -131,14 +132,11 @@ class CollectUser extends Basic
}
}
}
}
$data
[
'
user_date'
]
=
$res
;
$data
[
'
total'
]
=
$res_total
;
//dump($res)
;
$data
[
'user_date'
]
=
$res
;
$vip_services
=
new
VipService
();
$vip_services
=
new
VipService
();
$data
[
'examine_vip'
]
=
$vip_services
->
vip
(
$params
[
'agents_id'
]);
$data
[
'examine_vip'
]
=
$vip_services
->
vip
(
$params
[
'agents_id'
]);
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
}
}
}
}
\ No newline at end of file
application/model/ACollectUser.php
View file @
65a96cfb
...
@@ -65,5 +65,21 @@ class ACollectUser extends Model
...
@@ -65,5 +65,21 @@ class ACollectUser extends Model
return
$result
;
return
$result
;
}
}
/**
* 查询收藏数据统计数据
* 朱伟 2018-07-04
*/
public
function
getCollectListTotal
(
$field
,
$params
)
{
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
'CollectUser'
)
->
join
(
'u_users Users'
,
'CollectUser.user_id = Users.id'
,
'left'
)
->
where
(
$params
)
->
count
();
//dump($this->getLastSql());
return
$result
;
}
}
}
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