Commit 9355c568 by liuyongshuai

增加调用案件侦办审批页面的接口

parent 43ab058b
......@@ -473,6 +473,74 @@ public class AbutmentController {
}
/**
* 案件侦办跳转新德汇审批页面
* @param asjbh
* @param sfzh
* @param jh
* @param xxly
* @param response
*/
@RequestMapping(value = "/toAjzbSpJsp",method = {RequestMethod.GET,RequestMethod.POST})
public void toSpJsp2(String asjbh,String sfzh,String jh,String xxly,HttpServletResponse response){
String xm = null,lxdh = null,dldwmc = null,dldwdm = null,sqbt = null;
try{
JSONObject jsonObject = new JSONObject();
if(sfzh != null || jh != null){
User user = getUserInfo(sfzh,jh);
System.out.println("USER ==========" + user.toString());
xm = user.getTrue_name();
lxdh = user.getPhone_no();
dldwdm = user.getJz_dwdm();
dldwmc = user.getJz_dwmc();
}
if(xxly.equals("ajzb")){
System.out.println("sfzh =======" + sfzh + "jh ======="+jh);
jsonObject.put("sqly","信息布控");
sqbt = "案件侦办申请:案事件编号为"+asjbh+";侦办对象为:"+asjbh+";申请人是:"+xm+",警号为:"+jh+",身份证号为:"+sfzh;
System.out.println("sqbt======" + sqbt);
xxly = "案件侦办";
}
LinkedHashMap<String, Object> params = new LinkedHashMap<>();
params.put("sysname", "HCZZ-SQSP"); //参数
jsonObject.put("ajbh", asjbh);
jsonObject.put("sfzh", sfzh);
jsonObject.put("sqdx", asjbh);//审批对象为案件,则审批对象暂时定为asjbh
jsonObject.put("sqbt", sqbt);
jsonObject.put("level","2");
params.put("sysparam", jsonObject.toJSONString()); //参数
String url = UnifiedServiceUtil.sendRequest(bizCode,cjServiceId,params);
if(!StringUtil.ckeckEmpty(url)){
//添加审批日志
SpLog spLog = new SpLog();
spLog.setXxzjbh(KeyUtil.getUniqueKey("SPL"));
spLog.setAsjbh(asjbh);
spLog.setCqrSfzh(sfzh);
spLog.setCqrXm(xm);
spLog.setCqrJh(jh);
spLog.setCqrLxdh(lxdh);
spLog.setDldwdm(dldwdm);
spLog.setDldwmc(dldwmc);
spLog.setCqrIp("");
spLog.setSpbsh(asjbh);//审批对象为案件,则审批对象暂时定为asjbh
spLog.setBshlxdm("ajzb");//审批对象为案件,则申请对象类型代码暂时定为ajzb
spLog.setBshlxmc("案件侦办");//审批对象为案件,则申请对象类型名称暂时定为案件侦办
spLog.setSpTitle(sqbt);
spLog.setSpzt("2"); //正在审批
spLog.setXxly(xxly);
spLogService.saveSpLog(spLog);
//跳转
response.sendRedirect(url);
}
}catch (Exception e){
e.printStackTrace();
throw new InterServiceException(55,"发生未知错误!");
}
}
/**
* 调用新德汇接口获取审批结果
* @param asjbh
* @param sfzh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment