<%@page import="weaver.soa.workflow.request.RequestInfo"%> <%@page import="weaver.soa.workflow.request.RequestService"%> <%@ page import="weaver.general.Util" %> <%@ page import="java.util.List" %> <%@ page import="java.util.ArrayList" %> <%@ page import="com.ncr.action.WorkflowSplitAction" %> <%@ page import="weaver.hrm.User" %> <%@ page import="weaver.hrm.HrmUserVarify" %> <%@ page language="java" contentType="text/html; charset=UTF-8"%> <%@ page import="weaver.conn.RecordSet"%> <% User user = HrmUserVarify.getUser (request , response) ; String requestid = Util.null2String(request.getParameter("requestid")); int uid = user.getUID(); RecordSet rs= new RecordSet(); String sql = "update formtable_main_77 set duor = 5988 WHERE requestId = '"+requestid+"'"; rs.writeLog(sql); rs.executeSql(sql); out.print(uid); %>
function queryXCQKZY(req) {//获取当前操作人 var uid; jQuery.ajax({ url: "/ncr/getUserid.jsp", async: false, type: "post", data: { "requestid": req }, success: function(data) { uid = data.replace(/^\s*/g, ""); } }); return uid; }
标签:function,uid,req,ajax,data,泛微 From: https://www.cnblogs.com/yitian-lg/p/17218968.html