Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
a6de16df
Commit
a6de16df
authored
Mar 24, 2022
by
alissonalbuquerque
Browse files
add retorno de BuilderQuery nas funcoes de consulta
parent
6d3f2790
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Queries/PlanejamentoQuery.php
View file @
a6de16df
...
@@ -17,6 +17,7 @@ class PlanejamentoQuery extends Query {
...
@@ -17,6 +17,7 @@ class PlanejamentoQuery extends Query {
*/
*/
public
function
whereDimensao
(
int
$dimensao
,
string
$expression
=
'='
)
{
public
function
whereDimensao
(
int
$dimensao
,
string
$expression
=
'='
)
{
$this
->
query
=
$this
->
query
->
where
(
'dimensao'
,
$expression
,
$dimensao
);
$this
->
query
=
$this
->
query
->
where
(
'dimensao'
,
$expression
,
$dimensao
);
return
$this
->
query
;
}
}
/**
/**
...
@@ -26,6 +27,7 @@ class PlanejamentoQuery extends Query {
...
@@ -26,6 +27,7 @@ class PlanejamentoQuery extends Query {
*/
*/
public
function
whereCodDimensao
(
string
$cod_dimensao
,
string
$expression
=
'='
)
{
public
function
whereCodDimensao
(
string
$cod_dimensao
,
string
$expression
=
'='
)
{
$this
->
query
=
$this
->
query
->
where
(
'cod_dimensao'
,
$expression
,
$cod_dimensao
);
$this
->
query
=
$this
->
query
->
where
(
'cod_dimensao'
,
$expression
,
$cod_dimensao
);
return
$this
->
query
;
}
}
/**
/**
...
@@ -35,6 +37,7 @@ class PlanejamentoQuery extends Query {
...
@@ -35,6 +37,7 @@ class PlanejamentoQuery extends Query {
*/
*/
public
function
whereInCodDimensao
(
$codes_dimensao
)
{
public
function
whereInCodDimensao
(
$codes_dimensao
)
{
$this
->
query
=
$this
->
query
->
whereIn
(
'cod_dimensao'
,
$codes_dimensao
);
$this
->
query
=
$this
->
query
->
whereIn
(
'cod_dimensao'
,
$codes_dimensao
);
return
$this
->
query
;
}
}
}
}
\ No newline at end of file
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