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
a355ef3d
Commit
a355ef3d
authored
Nov 25, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'William_001' of
https://phoebe.roshka.com/gitlab/hshah/TalentoHumano
into joel-001
parents
de305e07
3d892253
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java
+3
-11
No files found.
curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java
View file @
a355ef3d
...
@@ -48,22 +48,14 @@ public class ConvocatoriaController {
...
@@ -48,22 +48,14 @@ public class ConvocatoriaController {
return
"convocatorias"
;
return
"convocatorias"
;
}
}
@
PostMapping
(
"/convocatoria
"
)
@
RequestMapping
(
"/convocatoria/crear/{id}
"
)
public
String
guardarConvocatoria
(
@ModelAttribute
ConvocatoriaCargo
convocatoria
,
BindingResult
result
,
RedirectAttributes
redirectAttributes
)
{
public
String
guardarConvocatoria
a
(
@PathVariable
(
required
=
false
)
Long
id
,
RedirectAttributes
redirectAttributes
)
{
for
(
ConvocatoriaCargo
conv:
convoRepo
.
findByCargoId
(
convocatoria
.
getCargoId
()
))
{
for
(
ConvocatoriaCargo
conv:
convoRepo
.
findByCargoId
(
id
))
{
if
(
conv
.
getEstado
()==
EstadoConvocatoria
.
abierto
){
if
(
conv
.
getEstado
()==
EstadoConvocatoria
.
abierto
){
redirectAttributes
.
addFlashAttribute
(
"SUCCESS_MESSAGE"
,
"Ya existe una convocatoria Abierta con ese cargo"
);
redirectAttributes
.
addFlashAttribute
(
"SUCCESS_MESSAGE"
,
"Ya existe una convocatoria Abierta con ese cargo"
);
return
"redirect:/convocatorias"
;
return
"redirect:/convocatorias"
;
}
}
}
}
if
(
result
.
hasErrors
());
convocatoria
.
setFechaInicio
(
new
Date
());
convocatoria
.
setEstado
(
EstadoConvocatoria
.
abierto
);
convoRepo
.
save
(
convocatoria
);
return
"redirect:/convocatorias"
;
}
@RequestMapping
(
"/convocatoria/crear/{id}"
)
public
String
guardarConvocatoriaa
(
@PathVariable
(
required
=
false
)
Long
id
)
{
ConvocatoriaCargo
convocatoria
=
new
ConvocatoriaCargo
();
ConvocatoriaCargo
convocatoria
=
new
ConvocatoriaCargo
();
convocatoria
.
setCargo
(
cargoRepo
.
findByIdCargo
(
id
));
convocatoria
.
setCargo
(
cargoRepo
.
findByIdCargo
(
id
));
convocatoria
.
setCargoId
(
cargoRepo
.
findByIdCargo
(
id
).
getId
());
convocatoria
.
setCargoId
(
cargoRepo
.
findByIdCargo
(
id
).
getId
());
...
...
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