Commit d864d584 by 焦荣

修改参数格式

parent d5f804df
......@@ -135,7 +135,7 @@ public class RyfkController {
System.out.println("dataResult=ddddddd===" + dataResult);
// Map maps = (Map) JSON.parse(dataResult.replace("=",":"));
Map maps = strtomap(dataResult);
String asjbh = maps.get("ASJBH").toString();
String asjbh = maps.get("ASJBH")==null?"":maps.get("ASJBH").toString();
System.out.println("asjbh= 根据人员查询案件编号==" + asjbh);
//获取案件信息
jsonStr = "[\"{\\\"ASJBH\\\":\\\"" + asjbh + "\\\"}\"]";
......@@ -277,7 +277,6 @@ public class RyfkController {
}
public Map strtomap(String dataResult){
System.out.println("rowlist=i===" + dataResult);
// Map maps = (Map) JSON.parse(dataResult.replace("=",":"));
dataResult = dataResult.replace("<","");
dataResult = dataResult.replace(">","");
......@@ -287,6 +286,7 @@ public class RyfkController {
String[] ms = s.split("=");
if(ms.length==2){
m.put(ms[0], ms[1]);
System.out.println("ms[0]====" + ms[0] + "==ms[1]===" + ms[1]);
}else{
m.put(ms[0], "");
}
......@@ -302,7 +302,7 @@ public class RyfkController {
//Map maps = (Map) JSON.parse(data.replace("=",":"));
Map maps = (Map) JSON.parse(data);
System.out.println(maps.get("B"));*/
data = data.replace("<","");
/* data = data.replace("<","");
data = data.replace(">","");
String[] strs = data.split(",");
Map<String, String> m = new HashMap<String, String>();
......@@ -315,9 +315,14 @@ public class RyfkController {
}
}
System.out.println("a===" + m.get("A"));
System.out.println("a===" + m.get("F")==null?"": m.get("F").toString());
System.out.println(m.get("B"));
System.out.println("D===" + m.get("D"));
System.out.println("D===" + m.get("D"));*/
RyfkController rk = new RyfkController();
Map m = rk.strtomap(data);
System.out.println(m.get("B"));
String F = m.get("F")==null?"":m.get("F").toString();
System.out.println("===" + F);
......
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