<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.hrm.HrmUserVarify" %>
<%@ page import="weaver.hrm.User" %>
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%

    JSONObject dataJson = new JSONObject();
    RecordSet rs = new RecordSet();
    User user = HrmUserVarify.getUser(request, response);
    int userid = user.getUID();
    String requestid = request.getParameter("requestid");
    int count = 0;
    int isprocess = 0;
    String sql = " select isremark from workflow_currentoperator where requestid="+requestid+" and userid = "+userid ;
    rs.executeQuery(sql);
    while (rs.next()){
        String isremark = Util.null2String(rs.getString("isremark"));
        if(!"2".equals(isremark) && !"4".equals(isremark)){
            isprocess++;
        }
        count++ ;
    }

    if(count == 0){
        dataJson.put("msg","");
    }else{
        if(isprocess >0){
            dataJson.put("msg","待处理");
        }else{
            dataJson.put("msg","已处理");
        }

    }

%>

<%=dataJson.toJSONString() %>

<%!


%>

