注册 登录
编程论坛 JAVA论坛

jsp里面条件判断

cydazm 发布于 2016-07-18 17:03, 1843 次点击
  if((startdate!=null && !"".equals(startdate))&&(enddate!=null && !"".equals(enddate))){
          if(message1.equals("清单1")){
              strCondition += " and BillPreFee.payrefdate>= to_date('"+startdate+"','yyyy-MM-dd') \n ";
              strCondition += " and BillPreFee.payrefdate<= to_date('"+enddate+"','yyyy-MM-dd')";
              blPrpJnoBillPreFee.queryVerified(strCondition);
          }         
         
          if(message3.equals("清单2")){
              strCondition += " and Mainer.voucherdate>= to_date('"+startdate+"','yyyy-MM-dd') \n ";
              strCondition += " and Mainer.voucherdate<= to_date('"+enddate+"','yyyy-MM-dd')";
               payRefRecHis.queryDailyTb(strCondition);
          }
 }
这段代码是在jsp里面的,通过判断message 的值从而执行不同的代码,但是运行的时候出错。请教大神是什么问题。
0 回复
1