新增通过简要案情来查询案件信息的接口

parent 738b8a0f
......@@ -173,4 +173,35 @@ public class MinistrySuspectInfoController {
return resultObj;
}
@RequestMapping(value = "/queryNationalCasesInfo",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody
public JSONObject queryNationalCasesInfo(String jyaq){
JSONObject resultObj = new JSONObject();
List<Map<String,Object>> resultList = new ArrayList<Map<String, Object>>();
try {
CallDygabxxfw call = new CallDygabxxfw();
JSONObject jsonObject = new JSONObject();
jsonObject.put("JYAQ", jyaq);
JSONArray jsonArray = new JSONArray();
jsonArray.add(jsonObject);
Object[] os = jsonArray.toArray();
Map<String,Object> mapQg = call.getGabZyInfoByJyaq("asj",os,gabConfig);
List<Map<String,Object>> asjbhList = (List<Map<String,Object>>)mapQg.get("dataResult");
if(!asjbhList.isEmpty() && asjbhList != null){
resultObj.put("code", ResultEnum.SUCCESS.getCode());
resultObj.put("message",ResultEnum.SUCCESS.getMessage());
}else {
resultObj.put("code", ResultEnum.SUCCESS.getCode());
resultObj.put("message","无数据");
}
resultObj.put("dataList",asjbhList);
} catch (Exception e) {
e.printStackTrace();
resultObj.put("code", ResultEnum.RESULT_ERROR.getCode());
resultObj.put("message",ResultEnum.RESULT_ERROR.getMessage());
}
return resultObj;
}
}
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