Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪伟伟
data-collect
Commits
57e06830
Commit
57e06830
authored
Feb 05, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未完成已完成 搜索
parent
e40384a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
app/Admin/Controllers/AlreadyDoneTaskController.php
+4
-4
app/Admin/Controllers/NoDoneTaskController.php
+4
-4
No files found.
app/Admin/Controllers/AlreadyDoneTaskController.php
View file @
57e06830
...
@@ -127,15 +127,15 @@ class AlreadyDoneTaskController extends AdminController
...
@@ -127,15 +127,15 @@ class AlreadyDoneTaskController extends AdminController
$param
=
request
()
->
input
();
$param
=
request
()
->
input
();
return
Grid
::
make
(
\App\Models\Tas
::
with
([
'receives'
=>
fn
(
$q
)
=>
$q
->
where
(
'status'
,
'>'
,
0
)
return
Grid
::
make
(
\App\Models\Tas
::
with
([
'receives'
=>
fn
(
$q
)
=>
$q
->
where
(
'status'
,
'>'
,
0
)
,
'receives.task'
=>
fn
(
$q
)
=>
$q
->
where
(
function
(
$que
)
use
(
$param
){
->
whereHas
(
'task'
,
function
(
$query
)
use
(
$param
){
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'name'
])){
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'name'
])){
$que
->
where
(
'name'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'name'
]
}
%"
);
$que
ry
->
where
(
'name'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'name'
]
}
%"
);
}
}
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'city_id'
])){
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'city_id'
])){
$que
->
where
(
'city_id'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'city_id'
]
}
%"
);
$que
ry
->
where
(
'city_id'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'city_id'
]
}
%"
);
}
}
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'year'
])){
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'year'
])){
$que
->
where
(
'year'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'year'
]
}
%"
);
$que
ry
->
where
(
'year'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'year'
]
}
%"
);
}
}
})
})
,
'receives.user'
,
'receives.collects'
,
'receives.approve'
])
->
whereHas
(
'receives'
,
function
(
$query
){
,
'receives.user'
,
'receives.collects'
,
'receives.approve'
])
->
whereHas
(
'receives'
,
function
(
$query
){
...
...
app/Admin/Controllers/NoDoneTaskController.php
View file @
57e06830
...
@@ -113,15 +113,15 @@ class NoDoneTaskController extends AdminController
...
@@ -113,15 +113,15 @@ class NoDoneTaskController extends AdminController
$param
=
request
()
->
input
();
$param
=
request
()
->
input
();
return
Grid
::
make
(
\App\Models\Tas
::
with
([
'receives'
=>
fn
(
$q
)
=>
$q
->
where
(
'status'
,
0
)
return
Grid
::
make
(
\App\Models\Tas
::
with
([
'receives'
=>
fn
(
$q
)
=>
$q
->
where
(
'status'
,
0
)
,
'receives.task'
=>
fn
(
$q
)
=>
$q
->
where
(
function
(
$que
)
use
(
$param
){
->
whereHas
(
'task'
,
function
(
$query
)
use
(
$param
){
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'name'
])){
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'name'
])){
$que
->
where
(
'name'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'name'
]
}
%"
);
$que
ry
->
where
(
'name'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'name'
]
}
%"
);
}
}
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'city_id'
])){
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'city_id'
])){
$que
->
where
(
'city_id'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'city_id'
]
}
%"
);
$que
ry
->
where
(
'city_id'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'city_id'
]
}
%"
);
}
}
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'year'
])){
if
(
!
empty
(
$param
[
'receives'
][
'task'
][
'year'
])){
$que
->
where
(
'year'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'year'
]
}
%"
);
$que
ry
->
where
(
'year'
,
'like'
,
"%
{
$param
[
'receives'
][
'task'
][
'year'
]
}
%"
);
}
}
})
})
,
'receives.user'
,
'receives.user'
...
...
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