

<%@ page import="java.text.SimpleDateFormat" %>

<%@ page import="java.util.*" %>
<%@ page import="org.slf4j.Logger" %>
<%@ page import="org.slf4j.LoggerFactory" %>
<%@ page import="com.engine.custom.audit.service.PushAuditService" %>
<%@ page import="com.engine.custom.hg.entity.HGBean" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>


<%
    // String getrqBydatesql = "select * from uf_tosjLog where ddsj > ? and ddsj < ?  ";
    // out.print("获取推送审计系统数据start");
    // RecordSet recordSet = new RecordSet();
    // recordSet.executeQuery(getrqBydatesql , "2024-04-23 00:00" ,"2024-04-23 24:00");
    // // out.print("getrqBydatesql=="+getrqBydatesql + startTime + endTime);
    // ArrayList<HGBean> hgBeans = new ArrayList<>();
    // while (recordSet.next()){
    //     HGBean hgBean = new HGBean();
    //     hgBean.setId(Util.getIntValue(recordSet.getString("id")));
    //     hgBean.setRequestId(Util.getIntValue(recordSet.getString("request")));
    //     hgBean.setContent(Util.null2String(recordSet.getString("content")));
    //     hgBean.setZt(Util.getIntValue(recordSet.getString("zt")));
    //     hgBean.setDdsj(Util.null2String(recordSet.getString("ddsj")));
    //     hgBean.setTssj(Util.null2String(recordSet.getString("tssj")));
    //     hgBean.setZwid(Util.null2String(recordSet.getString("zwid")));
    //     hgBean.setFjid(Util.null2String(recordSet.getString("fjid")));
    //     String ml = Util.null2String(recordSet.getString("ml"));
    //     hgBean.setMl(Arrays.asList(ml.split(",")));
    //     String fjml = Util.null2String(recordSet.getString("fjml"));
    //     hgBean.setMl(Arrays.asList(fjml.split(",")));
    //     hgBeans.add(hgBean);
    //     out.print("isEnd="+isEnd(hgBean.getRequestId()+""));
    // }
    // out.print("数据条数="+hgBeans.size());
    // out.print(JSONObject.toJSONString(hgBeans));
    String sql = "select CURRENTNODETYPE,CURRENTNODEID from WORKFLOW_REQUESTBASE where requestid = ?";
    RecordSet recordSet = new RecordSet();
    recordSet.executeQuery(sql,"331361");
    String CURRENTNODETYPE = "";
    String CURRENTNODEID = "";
    out.print(recordSet.getCounts());
    if(recordSet.next()){
        CURRENTNODETYPE = recordSet.getString("CURRENTNODETYPE");
        CURRENTNODEID = recordSet.getString("CURRENTNODEID");
    }
    out.print(CURRENTNODETYPE);

%>
<%!
    public static String isEnd(String requestid  ){
        String sql = "select CURRENTNODETYPE,CURRENTNODEID from WORKFLOW_REQUESTBASE where requestid = ?";
        RecordSet recordSet = new RecordSet();
        recordSet.execute(sql,requestid);
        String CURRENTNODETYPE = "";
        String CURRENTNODEID = "";
        if(recordSet.next()){
            CURRENTNODETYPE = recordSet.getString("CURRENTNODETYPE");
            CURRENTNODEID = recordSet.getString("CURRENTNODEID");
        }
        return CURRENTNODETYPE;
    };

%>