Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhupu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
zhupu
Commits
9d5be892
Commit
9d5be892
authored
Sep 16, 2023
by
sugar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://rungit.jxdsy.cn:10000/sugar/zhupu
into dev
parents
f994717a
ae4f2e68
Pipeline
#735
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
application/api/controller/FamilyTree.php
application/api/controller/FamilyTree.php
+12
-0
No files found.
application/api/controller/FamilyTree.php
View file @
9d5be892
...
...
@@ -12,6 +12,7 @@ use app\lib\model\FamilyModel;
use
app\lib\model\FamilyPeopleModel
;
use
app\lib\model\FamilyTreeMateModel
;
use
app\lib\model\FamilyTreeModel
;
use
app\lib\model\SurnameModel
;
use
app\lib\service\FamilyTreeService
;
use
fast\Tree
;
use
think\Db
;
...
...
@@ -629,6 +630,17 @@ class FamilyTree extends Api
*/
public
function
celebrityList
(){
$page
=
$this
->
request
->
param
(
'page'
,
1
);
$type
=
$this
->
request
->
param
(
'type'
,
1
);
$map
[
'type'
]
=
2
;
$map
[
'status'
]
=
1
;
if
(
$type
==
2
){
//同姓
$Surname
=
SurnameModel
::
where
([
"ID"
=>
$this
->
auth
->
surname_id
])
->
value
(
"Surname"
);
$map
[
'surname'
]
=
$Surname
;
}
else
if
(
$type
==
3
){
//同省
$map
[
'province_id'
]
=
$this
->
auth
->
province_id
;
}
else
if
(
$type
==
4
){
//同城
$map
[
'city_id'
]
=
$this
->
auth
->
city_id
;
}
$data
=
FamilyPeopleModel
::
where
([
'type'
=>
2
,
'status'
=>
1
])
->
field
(
"*"
)
->
page
(
$page
)
->
limit
(
10
)
->
order
(
"ranking desc,id desc"
)
->
select
();
$this
->
success
(
""
,
$data
);
}
...
...
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