@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); }
@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); }