$xn + "-" + ($xn + 1) + "学年" + if($xq_m = 0, "秋季", "春季") + "学期" + SQL("JDBC3", "select t.* from t_jw_examround t where t.xn='2017'and t.xq_m='0' and t.kslcdm='1' ", 4, 1) 这样t.xn='2017'and t.xq_m='0' and t.kslcdm='1' 写死能拿到值; 而$xn + "-" + ($xn + 1) + "学年" + if($xq_m = 0, "秋季", "春季") + "学期" + SQL("JDBC3", "select t.* from t_jw_examround t where t.xn='${xn}'and t.xq_m='${xn}' and t.kslcdm='${kslc}' ", 4, 1) 这样却取不到值了,${xn},${xq_m}等是有值的,因为前面$xn + "-" + ($xn + 1) + "学年" + if($xq_m = 0, "秋季", "春季") + "学期"都显示出来了 |