Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
4fc4db04
...
4fc4db04317f5a18d433c02caac235fb6cfd7693
authored
2022-11-29 15:03:26 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
23e68266
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/Services/PropertyTrackService.php
app/Services/PropertyTrackService.php
View file @
4fc4db0
...
...
@@ -27,11 +27,11 @@ class PropertyTrackService extends Service
{
$res
=
PropertyTrack
::
query
()
->
where
([
'create_admin'
=>
$this
->
identifier
->
company_id
,
'from'
=>
1
])
->
when
(
filled
(
$this
->
request
->
input
(
'upload_time'
)),
function
(
Builder
$builder
){
list
(
$start
,
$end
)
=
explode
(
'
-
'
,
$this
->
request
->
input
(
'upload_time'
));
list
(
$start
,
$end
)
=
explode
(
'
-
'
,
$this
->
request
->
input
(
'upload_time'
));
$builder
->
whereBetween
(
'upload_time'
,
[
trim
(
$start
),
trim
(
$end
)]);
})
->
when
(
filled
(
$this
->
request
->
input
(
'song_name'
)),
function
(
Builder
$builder
){
$builder
->
where
(
'
lik
e'
,
'like'
,
"%
{
$this
->
request
->
input
(
'song_name'
)
}
%"
);
$builder
->
where
(
'
song_nam
e'
,
'like'
,
"%
{
$this
->
request
->
input
(
'song_name'
)
}
%"
);
})
->
orderByDesc
(
'id'
)
->
paginate
(
$this
->
pageSize
);
return
Response
::
success
(
$res
);
...
...
@@ -66,7 +66,7 @@ class PropertyTrackService extends Service
}
/**
* 歌曲上传文件列表
(不登录)
* 歌曲上传文件列表
* @return \Illuminate\Http\JsonResponse
*/
public
function
file
()
...
...
Please
register
or
sign in
to post a comment