Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ProyectoFinal-Bootcamp
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
Jose Baez
ProyectoFinal-Bootcamp
Commits
79aa8098
Commit
79aa8098
authored
May 17, 2022
by
Jose Baez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correccion filtro por aceptados
parent
028b969a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteDao.java
+5
-18
No files found.
src/main/java/com/roshka/proyectofinal/Postulante/PostulanteDao.java
View file @
79aa8098
...
@@ -73,32 +73,19 @@ import java.util.List;
...
@@ -73,32 +73,19 @@ import java.util.List;
}
}
public
static
void
update
(
int
id
,
String
valor
)
{
public
static
void
update
(
int
id
,
String
valor
)
{
String
v
=
valor
;
boolean
v
=
valor
.
equals
(
"0"
)
?
false
:
true
;
if
(
v
==
"1"
)
{
try
{
try
{
Connection
con
=
DataBase
.
getConnection
();
Connection
con
=
DataBase
.
getConnection
();
PreparedStatement
ps
=
con
.
prepareStatement
(
"update postulante set aceptado=
false "
+
PreparedStatement
ps
=
con
.
prepareStatement
(
"update postulante set aceptado=
? where id=?"
);
"where id=?"
);
ps
.
setBoolean
(
1
,
v
);
ps
.
setInt
(
1
,
id
);
ps
.
setInt
(
2
,
id
);
ps
.
executeUpdate
();
ps
.
executeUpdate
();
con
.
close
();
con
.
close
();
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
ex
.
printStackTrace
();
ex
.
printStackTrace
();
}
}
}
else
{
try
{
Connection
con
=
DataBase
.
getConnection
();
PreparedStatement
ps
=
con
.
prepareStatement
(
"update postulante set aceptado= true "
+
" where id=?"
);
ps
.
setInt
(
1
,
id
);
ps
.
executeUpdate
();
con
.
close
();
}
catch
(
Exception
ex
)
{
ex
.
printStackTrace
();
}
}
}
}
...
...
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