Commit 9e144f34 by wangling

20190531---wangling---修改布控保存参数名

parent fe99df16
......@@ -300,7 +300,7 @@ public class BkController {
//已存在,不能重复添加
result = "repeat";
} else {
params.put("sysname", "add_z_ajbk"); //参数--服务类型
params.put("type", "add_z_ajbk"); //参数--服务类型
//参数
JSONObject jsonObject = new JSONObject();
//案事件编号
......@@ -310,7 +310,9 @@ public class BkController {
//布控对象号码(必须)
jsonObject.put("xyr_sfzh", ajbk.getZjhm());
//布控结束时间(必须)
jsonObject.put("bkjssj", ajbk.getQubksj());
SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd HH:mm");
String bkjssjString = formatter.format(ajbk.getBkjzsj());
jsonObject.put("bkjssj", bkjssjString);
//申请人姓名(必须)
jsonObject.put("creater_xm", ajbk.getCreateuser());
//申请人联系电话
......@@ -320,12 +322,16 @@ public class BkController {
params.put("sysparam", jsonObject.toJSONString()); //参数
//返回数据格式为xml
String urlStr = UnifiedServiceUtil.sendRequest(bizCode, getCjDataServiceId, params);
System.out.println("urlStr================"+urlStr);
if(!StringUtil.ckeckEmpty(urlStr)){
response.sendRedirect(urlStr);
if("success".equals(urlStr)){
result = "success";
} else {
result = "fail";
}
} else {
result = "fail";
}
}
} catch (Exception e) {
e.printStackTrace();
......
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