Exemplo n.º 1
0
  /** hkf 根据operatorid查询操作员 */
  @GET
  public String list_query_detail_json() {
    String id = this.getParam("id").toString();

    Map map = new HashMap();

    if (id.contains("/")) {
      map.put("operatorid", id.split("/")[0]);
    } else {
      map.put("operatorid", id);
    }
    // map.put("operator", id.split("/")[1]);
    HttpServletRequest request = this.getResponseHelper().getRequest();
    SessionBean sessionBean = SessionUtil.getSession(request);

    map.put("partyid", sessionBean.getPartyid());
    OperatorService operatorService =
        (OperatorService) SofaSpringContext.getBean("operatorService");
    String msg = operatorService.selectbyid(map);
    HttpServletResponse response = this.getResponseHelper().getResponse();
    return new JsonResponse().responseJson(response, msg);
  }