no message
parent
6c19458302
commit
b4252e0005
@ -0,0 +1,61 @@
|
||||
<%@ page import="weaver.conn.RecordSet" %>
|
||||
<%@ page import="weaver.general.BaseBean" %>
|
||||
<%@ page import="com.alibaba.fastjson.JSONObject" %>
|
||||
<%@ page import="com.alibaba.fastjson.JSONArray" %>
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
|
||||
<%!
|
||||
private boolean isEmpty(String str) {
|
||||
if ("".equals(str) ||"(null)".equals(str) || str == null) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
%>
|
||||
<%
|
||||
RecordSet rs = new RecordSet();
|
||||
BaseBean bb=new BaseBean();
|
||||
JSONArray array = new JSONArray();
|
||||
JSONObject json = new JSONObject();
|
||||
bb.writeLog("进入getdeleCount.jsp-->");
|
||||
String resquestid=request.getParameter("resquestid");
|
||||
int count=0;
|
||||
String mainWorkflowid = "0";
|
||||
String touchnodeid = "0";
|
||||
if (!isEmpty(resquestid)){
|
||||
String queryMainWorkflowidSql = "select workflowid from workflow_requestbase where requestid="+resquestid;
|
||||
bb.writeLog("queryMainWorkflowidSql-->"+queryMainWorkflowidSql);
|
||||
rs.execute(queryMainWorkflowidSql);
|
||||
if(rs.next()){
|
||||
mainWorkflowid = rs.getString(1);
|
||||
}
|
||||
|
||||
String queryTouchNodeidSql = "select touchnodeid from uf_sczlc where workflowid="+mainWorkflowid;
|
||||
bb.writeLog("queryTouchNodeidSql-->"+queryTouchNodeidSql);
|
||||
rs.execute(queryTouchNodeidSql);
|
||||
if(rs.next()){
|
||||
touchnodeid = rs.getString(1);
|
||||
}
|
||||
|
||||
String sql="select COUNT(*) as cnt from workflow_requestbase where mainrequestid="+resquestid+" and workflowid in (select workflowid subWorkflowId from workflow_requestbase where requestid in (select subrequestid from workflow_subwfrequest where subrequestid in (select requestid from workflow_requestbase where mainrequestid="+resquestid+" and triggernode = "+touchnodeid+")))";
|
||||
bb.writeLog("sql-->"+sql);
|
||||
rs.execute(sql);
|
||||
if (rs.next()){
|
||||
count=rs.getInt("cnt");
|
||||
json.put("code",0);
|
||||
json.put("count",count);
|
||||
array.add(json);
|
||||
out.print(array.toJSONString());
|
||||
}else {
|
||||
json.put("code",1);
|
||||
json.put("errMsg","查无此resquestid");
|
||||
array.add(json);
|
||||
out.print(array.toJSONString());
|
||||
}
|
||||
}else {
|
||||
json.put("code",1);
|
||||
json.put("errMsg","resquestid为空");
|
||||
array.add(json);
|
||||
out.print(array.toJSONString());
|
||||
}
|
||||
%>
|
@ -0,0 +1,62 @@
|
||||
<%@ page import="weaver.conn.RecordSet" %>
|
||||
<%@ page import="weaver.general.BaseBean" %>
|
||||
<%@ page import="com.alibaba.fastjson.JSONObject" %>
|
||||
<%@ page import="com.alibaba.fastjson.JSONArray" %>
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
|
||||
<%!
|
||||
private boolean isEmpty(String str) {
|
||||
if ("".equals(str) ||"(null)".equals(str) || str == null) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
%>
|
||||
<%
|
||||
RecordSet rs = new RecordSet();
|
||||
BaseBean bb=new BaseBean();
|
||||
JSONArray array = new JSONArray();
|
||||
JSONObject json = new JSONObject();
|
||||
bb.writeLog("进入getdeleCount.jsp-->");
|
||||
String resquestid=request.getParameter("resquestid");
|
||||
int count=0;
|
||||
String mainWorkflowid = "0";
|
||||
String touchnodeid = "0";
|
||||
if (!isEmpty(resquestid)){
|
||||
String queryMainWorkflowidSql = "select workflowid from workflow_requestbase where requestid="+resquestid;
|
||||
bb.writeLog("queryMainWorkflowidSql-->"+queryMainWorkflowidSql);
|
||||
rs.execute(queryMainWorkflowidSql);
|
||||
if(rs.next()){
|
||||
mainWorkflowid = rs.getString(1);
|
||||
}
|
||||
|
||||
String queryTouchNodeidSql = "select touchnodeid from uf_sczlc where workflowid="+mainWorkflowid;
|
||||
bb.writeLog("queryTouchNodeidSql-->"+queryTouchNodeidSql);
|
||||
rs.execute(queryTouchNodeidSql);
|
||||
if(rs.next()){
|
||||
touchnodeid = rs.getString(1);
|
||||
}
|
||||
|
||||
String sql="select COUNT(*) as cnt from workflow_requestbase where mainrequestid="+resquestid+" and workflowid in (select workflowid subWorkflowId from workflow_requestbase where requestid in (select subrequestid from workflow_subwfrequest where subrequestid in (select requestid from workflow_requestbase where mainrequestid="+resquestid+" and triggernode = "+touchnodeid+")))";
|
||||
bb.writeLog("sql-->"+sql);
|
||||
rs.execute(sql);
|
||||
if (rs.next()){
|
||||
count=rs.getInt("cnt");
|
||||
json.put("code",0);
|
||||
json.put("count",count);
|
||||
array.add(json);
|
||||
out.print(array.toJSONString());
|
||||
}else {
|
||||
json.put("code",1);
|
||||
json.put("errMsg","查无此resquestid");
|
||||
array.add(json);
|
||||
out.print(array.toJSONString());
|
||||
}
|
||||
}else {
|
||||
json.put("code",1);
|
||||
json.put("errMsg","resquestid为空");
|
||||
array.add(json);
|
||||
out.print(array.toJSONString());
|
||||
}
|
||||
%>
|
||||
|
@ -0,0 +1,92 @@
|
||||
<%@ page import="weaver.conn.RecordSet" %>
|
||||
<%@ page import="weaver.general.BaseBean" %>
|
||||
<%@ page import="weaver.general.Util" %>
|
||||
<%@ page import="com.alibaba.fastjson.JSONObject" %>
|
||||
<%@ page import="com.alibaba.fastjson.JSONArray" %>
|
||||
<%@ page import="java.util.regex.Pattern" %>
|
||||
<%@ page import="java.util.regex.Matcher" %>
|
||||
<%@ page import="java.io.*" %>
|
||||
<%@ page import="weaver.docs.webservices.DocInfo" %>
|
||||
<%@ page import="weaver.docs.webservices.DocAttachment" %>
|
||||
<%@ page import="org.apache.axis.encoding.Base64" %>
|
||||
<%@ page import="weaver.docs.webservices.DocServiceImpl" %>
|
||||
<%@ page import="weaver.hrm.User" %>
|
||||
<%@ page import="java.text.SimpleDateFormat" %>
|
||||
<%@ page import="java.util.*" %>
|
||||
<%@ page import="org.apache.commons.lang.StringUtils" %>
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
|
||||
<%@ page import="org.apache.http.impl.client.CloseableHttpClient" %>
|
||||
<%@ page import="org.apache.http.impl.client.HttpClients" %>
|
||||
<%@ page import="org.apache.http.client.methods.HttpPost" %>
|
||||
<%@ page import="com.alibaba.fastjson.JSON" %>
|
||||
<%@ page import="org.apache.http.entity.StringEntity" %>
|
||||
<%@ page import="org.apache.http.client.methods.CloseableHttpResponse" %>
|
||||
<%@ page import="org.apache.http.HttpStatus" %>
|
||||
<%@ page import="org.apache.http.HttpEntity" %>
|
||||
<%@ page import="org.apache.http.util.EntityUtils" %>
|
||||
<%@ page import="org.apache.http.client.ClientProtocolException" %>
|
||||
<%@ page import="weaver.hrm.HrmUserVarify" %>
|
||||
<%@ page import="java.net.URL" %>
|
||||
<%@ page import="java.net.HttpURLConnection" %>
|
||||
<%@ page import="org.apache.http.HttpException" %>
|
||||
<%@ page import="org.apache.http.client.HttpClient" %>
|
||||
<%@ page import="org.apache.commons.httpclient.methods.PostMethod" %>
|
||||
<%@ page import="org.apache.commons.httpclient.params.HttpMethodParams" %>
|
||||
<%!
|
||||
private boolean isEmpty(String str) {
|
||||
if ("".equals(str) ||"(null)".equals(str) || str == null) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
%>
|
||||
<%
|
||||
RecordSet rs = new RecordSet();
|
||||
BaseBean bb=new BaseBean();
|
||||
JSONArray array = new JSONArray();
|
||||
JSONObject json = new JSONObject();
|
||||
bb.writeLog("进入getdeleType.jsp-->");
|
||||
String workflowid=request.getParameter("workflowid");
|
||||
String nodeid="-1";
|
||||
String requestid=request.getParameter("requestid");
|
||||
rs.execute("select lastnodeid from workflow_requestbase where requestid = "+requestid);
|
||||
if(rs.next()){
|
||||
nodeid = rs.getString(1);
|
||||
}
|
||||
if (!isEmpty(workflowid) && !isEmpty(nodeid)) {
|
||||
bb.writeLog("workflowid和nodeid不为空");
|
||||
int cnt = 0;
|
||||
//查询配置表
|
||||
String sczlc = "select COUNT(*) as cnt from uf_sczlc where workflowid=" + workflowid + " and nodeid=" + nodeid;
|
||||
bb.writeLog("sczlcSql-->" + sczlc);
|
||||
try {
|
||||
rs.execute(sczlc);
|
||||
bb.writeLog("sczlc查询数据-->");
|
||||
if (rs.next()) {
|
||||
cnt = rs.getInt("cnt");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
bb.writeLog("cnt结果-->" + cnt);
|
||||
if (cnt>0){
|
||||
json.put("code",0);
|
||||
json.put("count",cnt);
|
||||
array.add(json);
|
||||
out.print(array.toJSONString());
|
||||
}else {
|
||||
json.put("code",1);
|
||||
json.put("errMsg","查无此workflowid或nodeid数据");
|
||||
array.add(json);
|
||||
out.print(array.toJSONString());
|
||||
}
|
||||
}else {
|
||||
json.put("code",1);
|
||||
json.put("errMsg","workflowid或nodeid为空");
|
||||
array.add(json);
|
||||
out.print(array.toJSONString());
|
||||
}
|
||||
|
||||
%>
|
||||
|
Loading…
Reference in New Issue