Tenho o valor cloudemp do campo codempcloud da tabela sgprefere1.
É um campo inteiro, capturado da seguinte forma.
sSQL = "SELECT P.CODMOEDA, P.PEPSPROD, P.TIPOCODBAR, E.CODEANEMP, PA.CODEANPAIS, P.TAMDESCPROD, "
+ "P.CVPROD, P.VERIFPROD, P.RMAPROD, P.TIPOPROD, P.CODEMPCLOUD "
+ "FROM SGPREFERE1 P, SGEMPRESA E, SGFILIAL F left outer join SGPAIS PA "
+ "on pa.codpais=f.codpais "
+ "WHERE P.CODEMP=? AND P.CODFILIAL=? AND E.CODEMP=P.CODEMP AND "
+ “F.CODEMP=E.CODEMP AND F.CODFILIAL=?”;
ps = con.prepareStatement( sSQL );
ps.setInt( 1, Aplicativo.iCodEmp );
ps.setInt( 2, ListaCampos.getMasterFilial( "SGPREFERE1" ) );
ps.setInt( 3, Aplicativo.iCodFilial );
rs = ps.executeQuery();
if ( rs.next() ) {
sRetorno[ eprefs.CODMOEDA.ordinal() ] = rs.getString( "CODMOEDA" );
sRetorno[ eprefs.PEPSPROD.ordinal() ] = rs.getString( "PEPSPROD" );
sRetorno[ eprefs.TIPOCODBAR.ordinal() ] = rs.getString( "TIPOCODBAR" );
sRetorno[ eprefs.CODEANEMP.ordinal() ] = rs.getString( "CODEANEMP" );
sRetorno[ eprefs.CODPAISEMP.ordinal() ] = rs.getString( "CODEANPAIS" );
sRetorno[ eprefs.TAMDESCPROD.ordinal() ] = rs.getString( "TAMDESCPROD" );
sRetorno[ eprefs.CVPROD.ordinal() ] = rs.getString( "CVPROD" );
sRetorno[ eprefs.VERIFPROD.ordinal() ] = rs.getString( "VERIFPROD" );
sRetorno[ eprefs.RMAPROD.ordinal() ] = rs.getString( "RMAPROD" );
sRetorno[ eprefs.TIPOPROD.ordinal() ] = rs.getString( "TIPOPROD" );
sRetorno[ eprefs.CLOUDEMP.ordinal() ] = rs.getString( "CODEMPCLOUD" );
}
O que quero é o seguinte se o campo for maior ou igual a zero então faça x se for vazio faça y
Não estou conseguindo fazer
podem me ajudar