Beispiel #1
0
 @RequestMapping("/query")
 @ResponseBody
 public String query(RainbowContext context) {
   context.setService("orgService");
   context.setMethod("query");
   context = SoaManager.getInstance().invoke(context);
   return JsonUtil.getInstance()
       .object2JSON(context.getRows(), SerializerFeature.WriteDateUseDateFormat);
 }
Beispiel #2
0
 @RequestMapping("/queryComboxTree")
 @ResponseBody
 public String queryComboxTree(HttpServletRequest request) {
   RainbowContext context = new RainbowContext();
   context.setService("orgService");
   context.setMethod("queryComboxTree");
   context.addAttr("id", request.getParameter("id"));
   context = SoaManager.getInstance().invoke(context);
   return JsonUtil.getInstance()
       .object2JSON(context.getRows(), SerializerFeature.WriteDateUseDateFormat);
 }