Groups
Sign in
Groups
Play Framework Latam
Conversations
About
Send feedback
Help
cannot find symbol
7 views
Skip to first unread message
Paola Bruccoleri
unread,
Apr 22, 2015, 4:59:33 PM
4/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lista Play Latam
Hola todos!
tengo este error al ejecutar al hacer RUN
cannot find symbol, en la línea que pongo en negrita
se usó mybatis y tengo estas instrucciones: (en el legacy-sqlmap.xml)
<select id="readTasaMora1" resultType="double">
SELECT TOP 1 INTERES AS MORA
FROM MORA
ORDER BY FECHA DESC
</select>
<select id="readTasaMora2" resultType="double">
SELECT TOP 1 INTERES2 AS MORA
FROM MORA
ORDER BY FECHA DESC
</select>
En el Legacy.java tengo esto:
public static double readTasaMora (long nroCuotas) throws Exception{
SqlSession session = DBUtil.getInstance().openSQLSession();
try{
if (nroCuotas <= 11) {
Double mora = (Double) session.selectOne("app.models.legacy.readTasaMora1");
} else {
Double mora = (Double) session.selectOne("app.models.legacy.readTasaMora2");
}
session.commit();
return mora;
ACA EL ERROR!
}finally {
session.close();
}
}
alguna idea??
muchas gracias
jc om
unread,
Apr 22, 2015, 9:15:50 PM
4/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-...@googlegroups.com
la variable mora estal ma declarada, debe ir fuera de los if, algo como esto
Double mora=0;
if (nroCuotas <= 11) {
mora = (Double) session.selectOne("app.models.legacy.readTasaMora1");
} else {
Paola Bruccoleri
unread,
Apr 23, 2015, 9:07:02 AM
4/23/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-...@googlegroups.com
ok, muchas gracias.. era eso!
Reply all
Reply to author
Forward
0 new messages