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
1
Merge Requests
1
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
Oscar Enrique Gonzalez Escurra
th-app-java
Commits
5bdcd30f
Commit
5bdcd30f
authored
Nov 26, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actualizar postulante mantiene cargo y coloca experiencia
parent
b6841f85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
+17
-1
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
+1
-0
curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp
+10
-2
No files found.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
View file @
5bdcd30f
...
...
@@ -19,6 +19,10 @@ import org.springframework.web.multipart.MultipartFile;
import
org.springframework.web.servlet.mvc.support.RedirectAttributes
;
import
org.springframework.web.servlet.view.RedirectView
;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.Set
;
import
javax.validation.ConstraintViolationException
;
@Controller
...
...
@@ -91,7 +95,19 @@ public class PostulanteController {
postulanteTecnologiaRepository
.
findByPostulante
(
postulantex
).
forEach
(
x
->
postulanteTecnologiaRepository
.
delete
(
x
));
postulante
.
setId
(
postulantex
.
getId
());
postulante
.
setFechaCreacion
((
postulantex
.
getFechaCreacion
()));
postulante
.
setMesesDeExperiencia
(
postulantex
.
getMesesDeExperiencia
());
//postulante.setMesesDeExperiencia(postulantex.getMesesDeExperiencia());
ArrayList
<
ConvocatoriaCargo
>
postulaciones
=
new
ArrayList
<>();
Set
<
Long
>
indices
=
new
HashSet
<>();
for
(
ConvocatoriaCargo
convocatoriaCargo
:
postulante
.
getPostulaciones
())
{
indices
.
add
(
convocatoriaCargo
.
getId
());
postulaciones
.
add
(
convocatoriaCargo
);
}
for
(
ConvocatoriaCargo
convocatoriaCargo
:
postulantex
.
getPostulaciones
())
{
if
(
indices
.
contains
(
convocatoriaCargo
.
getId
()))
continue
;
postulaciones
.
add
(
convocatoriaCargo
);
}
postulante
.
setPostulaciones
(
postulaciones
);
}
if
(
file
!=
null
){
DBFile
cv
=
Helper
.
createFile
(
file
);
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
View file @
5bdcd30f
...
...
@@ -162,6 +162,7 @@ public class Postulante {
@PreUpdate
public
void
actualizarFecha
(){
this
.
fechaActualizacion
=
new
Date
();
this
.
calcularExperienciaEnMese
();
}
...
...
curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp
View file @
5bdcd30f
...
...
@@ -317,8 +317,16 @@
<c:forEach items="${postulante.postulaciones}" var="convocatoria">
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">${convocatoria.getCargo().getNombre()}</h6>
<span class="text-secondary"></span>
<div class="ms-2 me-auto">
<div class="fw-bold">${convocatoria.getCargo().getNombre()}</div>
Inicio en: <fmt:formatDate value="${convocatoria.getFechaInicio()}" pattern="dd/MM/yyyy" />
<c:if test="${convocatoria.getFechaFin() != null}">
<br>
Finalizo el: <fmt:formatDate value="${convocatoria.getFechaFin()}" pattern="dd/MM/yyyy" />
</c:if>
</div>
</li>
</c:forEach>
...
...
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