re_flow_now_all.jsp
2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<%@ page import="com.engine.kq.biz.KQFlowActiontBiz" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%
try {
String requestids = Util.null2String(request.getParameter("requestids"));
String workflowid = Util.null2String(request.getParameter("workflowid"));
if(requestids.length() == 0){
out.println("param requestids is null:<br/>");
return ;
}
if(workflowid.length() == 0){
out.println("param workflowid is null:<br/>");
return ;
}
long start = System.currentTimeMillis();
KQFlowActiontBiz kqFlowActiontBiz = new KQFlowActiontBiz();
RecordSet rs = new RecordSet();
String[] requestids_a = requestids.split(",");
for(String requestid : requestids_a){
out.println(requestid+"秒");
String proc_set_sql = "select * from kq_att_proc_set where field001 = ? ";
rs.executeQuery(proc_set_sql, workflowid);
if(rs.next()){
String proc_set_id = rs.getString("id");
//得到这个考勤流程设置是否使用明细
String usedetails = rs.getString("usedetail");
int kqtype = Util.getIntValue(rs.getString("field006"));
out.println("do action on kqtype:" + kqtype+"<br/>");
Map<String, String> map = new HashMap<String, String>();
if(Util.getIntValue(requestid) > 0){
map.put("requestId", "and t.requestId = " + requestid);
}
Map<String,String> result = kqFlowActiontBiz.handleKQFlowAction(proc_set_id, usedetails, Util.getIntValue(requestid), kqtype, Util.getIntValue(workflowid), false,false,map);
out.println("do action on kqtype result:" + result+"<br/>");
if(!result.isEmpty()){
out.println("do action on kqtype 失败:" + result+"<br/>");
}
}
}
long end = System.currentTimeMillis();
out.println((end-start)/1000+"秒");
}catch (Exception e){
e.printStackTrace();;
}
%>