||当左边为真时,就不运行右边的表达式了
|当左边为真,还是会运算右边的表达式

&&当左边为假时,就不会运算右边的表达式
&当左边为假时,还是会运算右边的表达式

//add by zengzhiwei 2015年12月26日 23:56:19 begin
public Boolean CheckPk(String billPk) throws BusinessException {

String sql=new String("");
sql="select guid from Mid_Payinfo where billpk='"+billPk+"'";
Map map = (Map) getBaseDAO().executeQuery(sql, new MapProcessor());
if(map != null ||map.size>0) //正确的写法应该是  (map!=null&&map.size>0)
{
return true;
}
else
return false;	
}


//add by zengzhiwei 2015年12月26日 23:56:29 end

  

相关文章:

  • 2021-12-17
  • 2021-10-18
  • 2021-08-17
  • 2021-12-29
  • 2021-11-29
  • 2021-08-31
猜你喜欢
  • 2021-08-23
  • 2021-10-20
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
相关资源
相似解决方案