<%@ page contentType="text/html; charset=UTF-8" %> <%@ page import="weaver.general.Util" %> <%@ page import="com.alibaba.fastjson.JSONObject" %> <% JSONObject jsonObject = new JSONObject(); boolean flag = false; String requestid = Util.null2String(request.getParameter("requestid")); String competitionRegistration_table = rs.getPropValue("hrm_wuyuan","competitionRegistration_table"); rs.executeQuery("select * from "+competitionRegistration_table+" where requestid=?",requestid); while(rs.next()) { //查看报名结果 0-通过 1-不通过 String ckbmjg = Util.null2String(rs.getString("ckbmjg")); if(ckbmjg != null && !"".equals(ckbmjg)){ if(Integer.parseInt(ckbmjg)==0 || Integer.parseInt(ckbmjg)==1){ flag = true; } } } jsonObject.put("flag",flag); out.print(JSONObject.toJSONString(jsonObject)); %>