You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.7 KiB
Plaintext

<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="java.util.*" %>
<%@ page import="weaver.hrm.resource.ResourceComInfo" %>
<%@ page import="weaver.workflow.workflow.WorkflowVersion" %>
<%@ page import="weaver.general.BaseBean" %>
<%@page contentType="text/html; charset=UTF-8" %>
<%
HashMap<String, Object> result = new HashMap<>();
String requestid = request.getParameter("requestid");
//需要提醒的子流程流程id
String workflowids = request.getParameter("workflowids");
WorkflowVersion workflowVersion = new WorkflowVersion();
String allVersionwfids = workflowVersion.getAllVersionStringByWFIDs4List(workflowids);
RecordSet rs = new RecordSet();
ResourceComInfo resourceComInfo = new ResourceComInfo();
ArrayList<JSONObject> records = new ArrayList<>();
try {
rs.executeQuery("select * from workflow_requestbase " +
" where mainRequestId = ? " +
" and workflowid in ( " + allVersionwfids + " ) and CURRENTNODETYPE != 3", requestid);
while (rs.next()) {
JSONObject record = new JSONObject();
record.put("requestid", rs.getString("requestid"));
record.put("requestName", rs.getString("requestName"));
String creater = rs.getString("creater");
record.put("creater", creater );
record.put("createrName", resourceComInfo.getLastname(creater));
records.add(record);
}
} catch (Exception e) {
}
result.put("status", true);
result.put("data", records);
new BaseBean().writeLog("result:--"+result);
out.print(JSONObject.toJSONString(result));
%>
<%!
%>