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
9b6a4bd0
Commit
9b6a4bd0
authored
Nov 24, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eliminacion de sysouts
parent
40a62e2b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
26 deletions
+1
-26
curriculumsearch/src/main/java/com/roshka/controller/CargoController.java
+0
-1
curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java
+1
-22
curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java
+0
-2
curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java
+0
-1
No files found.
curriculumsearch/src/main/java/com/roshka/controller/CargoController.java
View file @
9b6a4bd0
...
@@ -68,7 +68,6 @@ public class CargoController {
...
@@ -68,7 +68,6 @@ public class CargoController {
cargo
.
setExisteConvocatoria
(
cargoRepo
.
getById
(
id
).
isExisteConvocatoria
());
cargo
.
setExisteConvocatoria
(
cargoRepo
.
getById
(
id
).
isExisteConvocatoria
());
}
}
cargoRepo
.
save
(
cargo
);
cargoRepo
.
save
(
cargo
);
System
.
out
.
println
(
cargo
.
getNombre
());
return
"redirect:/cargos"
;
return
"redirect:/cargos"
;
}
}
...
...
curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java
View file @
9b6a4bd0
...
@@ -75,7 +75,6 @@ public class ConvocatoriaController {
...
@@ -75,7 +75,6 @@ public class ConvocatoriaController {
convocatoria
.
setFechaInicio
(
new
Date
());
convocatoria
.
setFechaInicio
(
new
Date
());
convocatoria
.
setEstado
(
EstadoConvocatoria
.
abierto
);
convocatoria
.
setEstado
(
EstadoConvocatoria
.
abierto
);
convoRepo
.
save
(
convocatoria
);
convoRepo
.
save
(
convocatoria
);
System
.
out
.
println
(
convocatoria
.
getFechaInicio
());
return
"redirect:/convocatorias"
;
return
"redirect:/convocatorias"
;
}
}
@RequestMapping
(
"/convocatoria/crear/{id}"
)
@RequestMapping
(
"/convocatoria/crear/{id}"
)
...
@@ -83,12 +82,11 @@ public class ConvocatoriaController {
...
@@ -83,12 +82,11 @@ public class ConvocatoriaController {
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
());
System
.
out
.
println
(
cargoRepo
.
findByIdCargo
(
id
).
getNombre
());
convocatoria
.
setFechaInicio
(
new
Date
());
convocatoria
.
setFechaInicio
(
new
Date
());
convocatoria
.
setEstado
(
EstadoConvocatoria
.
abierto
);
convocatoria
.
setEstado
(
EstadoConvocatoria
.
abierto
);
convocatoria
.
getCargo
().
setExisteConvocatoria
(
true
);
convocatoria
.
getCargo
().
setExisteConvocatoria
(
true
);
convoRepo
.
save
(
convocatoria
);
convoRepo
.
save
(
convocatoria
);
System
.
out
.
println
(
convocatoria
.
getFechaInicio
());
return
"redirect:/convocatorias"
;
return
"redirect:/convocatorias"
;
}
}
...
@@ -120,26 +118,7 @@ public class ConvocatoriaController {
...
@@ -120,26 +118,7 @@ public class ConvocatoriaController {
convocatoria
.
setFechaFin
(
new
Date
());
convocatoria
.
setFechaFin
(
new
Date
());
convocatoria
.
getCargo
().
setExisteConvocatoria
(
false
);
convocatoria
.
getCargo
().
setExisteConvocatoria
(
false
);
convoRepo
.
save
(
convocatoria
);
convoRepo
.
save
(
convocatoria
);
/*if(id != null) convocatoria.setId(id);
//System.out.println(convoRepo.filtrarConvocatoriasPorCargo(convocatoria.getCargoId()));
for(ConvocatoriaCargo c: convoRepo.filtrarConvocatoriasPorCargo(convocatoria.getCargoId())){
if(result.hasErrors() || c.getCargoId()==convocatoria.getCargoId() && c.getFechaFin().after(convocatoria.getFechaInicio()) )
{
model.addAttribute("existeFecha", true);
System.out.println("no debe");
return "convocatoria-form";
}
else{
convoRepo.save(convocatoria);
System.out.println("si anda");
break;
}
}*/
return
"redirect:/convocatorias"
;
return
"redirect:/convocatorias"
;
...
...
curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java
View file @
9b6a4bd0
...
@@ -87,8 +87,6 @@ public class RRHHUserController {
...
@@ -87,8 +87,6 @@ public class RRHHUserController {
@GetMapping
(
"/edit-user-data"
)
@GetMapping
(
"/edit-user-data"
)
public
String
editUserData
(
HttpServletRequest
request
,
Model
model
){
public
String
editUserData
(
HttpServletRequest
request
,
Model
model
){
Authentication
auth
=
SecurityContextHolder
.
getContext
().
getAuthentication
();
Authentication
auth
=
SecurityContextHolder
.
getContext
().
getAuthentication
();
System
.
out
.
println
(
auth
.
getPrincipal
().
toString
());
System
.
out
.
println
(
rrhhUserRepository
.
findByEmail
(
auth
.
getPrincipal
().
toString
()));
model
.
addAttribute
(
"user"
,
rrhhUserRepository
.
findByEmail
(
auth
.
getPrincipal
().
toString
()));
model
.
addAttribute
(
"user"
,
rrhhUserRepository
.
findByEmail
(
auth
.
getPrincipal
().
toString
()));
return
"edit-user-data"
;
return
"edit-user-data"
;
}
}
...
...
curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java
View file @
9b6a4bd0
...
@@ -69,7 +69,6 @@ public String addtecnologiaView(Model model,@PathVariable(required = false) Long
...
@@ -69,7 +69,6 @@ public String addtecnologiaView(Model model,@PathVariable(required = false) Long
}
}
if
(
id
!=
null
)
tecnologia
.
setId
(
id
);
if
(
id
!=
null
)
tecnologia
.
setId
(
id
);
tecRepo
.
save
(
tecnologia
);
tecRepo
.
save
(
tecnologia
);
System
.
out
.
println
(
tecnologia
.
getNombre
());
return
"redirect:/tecnologias"
;
return
"redirect:/tecnologias"
;
}
}
...
...
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