Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
th-app-java
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
Amparo Oliver
th-app-java
Commits
72be946f
Commit
72be946f
authored
Nov 04, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Plain Diff
merge con experiencia mayor
parents
09c52107
840419e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
+10
-1
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java
+6
-0
No files found.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
View file @
72be946f
package
com
.
roshka
.
controller
;
package
com
.
roshka
.
controller
;
import
java.util.List
;
import
javax.validation.ConstraintViolationException
;
import
javax.validation.ConstraintViolationException
;
import
com.roshka.modelo.Disponibilidad
;
import
com.roshka.modelo.Disponibilidad
;
...
@@ -23,6 +25,8 @@ import java.util.List;
...
@@ -23,6 +25,8 @@ import java.util.List;
import
java.util.Locale
;
import
java.util.Locale
;
@Controller
@Controller
public
class
PostulanteController
{
public
class
PostulanteController
{
@Autowired
@Autowired
...
@@ -33,7 +37,12 @@ public class PostulanteController {
...
@@ -33,7 +37,12 @@ public class PostulanteController {
@RequestMapping
(
"/"
)
@RequestMapping
(
"/"
)
public
String
index
()
{
public
String
index
()
{
return
"index"
;
List
<
Postulante
>
j
=
post
.
personasConExperienciaMayor
(
30
);
for
(
Postulante
postulante
:
j
)
{
System
.
out
.
println
(
postulante
.
getNombre
());
}
return
"index"
;
}
}
@RequestMapping
(
"/postulantes"
)
@RequestMapping
(
"/postulantes"
)
...
...
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java
View file @
72be946f
...
@@ -24,4 +24,10 @@ public interface PostulanteRepository extends JpaRepository<Postulante,Long> {
...
@@ -24,4 +24,10 @@ public interface PostulanteRepository extends JpaRepository<Postulante,Long> {
"WHERE t.id = ?1"
)
"WHERE t.id = ?1"
)
public
List
<
Postulante
>
buscarPostulantesPorTecnologia
(
long
tecnologiaId
);
public
List
<
Postulante
>
buscarPostulantesPorTecnologia
(
long
tecnologiaId
);
@Query
(
value
=
"select p"
+
"from postulante p join experiencia x on x.postulante_id= p.id"
+
"group by p.id"
+
"having sum(fecha_hasta-fecha_desde)>?1 * INTERVAL '1' month"
,
nativeQuery
=
true
)
public
List
<
Postulante
>
personasConExperienciaMayor
(
long
meses
);
}
}
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