@@ -469,10 +469,10 @@ public class MySqlPlanaDAO implements PlanaDAO {
cnx=MySqlDAOFactory.obtenerConexion(base);
Statementst=cnx.createStatement();
Stringquery="SELECT p.cod_pla,p.nom_pla,pd.est_plana FROM area_docente ad\n"+
"INNER JOIN plana_docente pd ON ad.cod_doc=pd.cod_doc\n"+
"INNER JOIN plana p ON p.cod_pla=pd.cod_pla\n"+
" WHERE ad.cod_doc='"+codDocente+"' and pd.cod_per='"+codPer+"'";
Stringquery="SELECT p.cod_pla,p.nom_pla,\n"+
"(SELECT est_plana FROM plana_docente pd WHERE pd.cod_doc='"+codDocente+"' and pd.cod_per='"+codPer+"' and pd.est_plana=1 and pd.cod_pla=p.cod_pla) estado\n"+
"from plana p \n"+
"WHERE p.cod_are='"+codArea+"'";
ResultSetrs=st.executeQuery(query);
...
...
@@ -480,7 +480,7 @@ public class MySqlPlanaDAO implements PlanaDAO {