Ejemplo n.º 1
0
  @RequestMapping(value = "/BoothRentFeeList", produces = "application/json")
  @ResponseBody
  public Map<String, Object> boothInfoList(HttpServletRequest request) throws Exception {
    Map<String, Object> model = new HashMap<String, Object>();

    HashMap<String, String> param = new HashMap<String, String>();
    List<BoothRentFeeDto> list = null;

    String groupId = request.getParameter("groupId");
    String boothId = request.getParameter("boothId");
    String rentYear = request.getParameter("rentYear");
    String rentMonth = request.getParameter("rentMonth");
    String rentFeeType = request.getParameter("rentFeeType");
    String payOnsite = request.getParameter("payOnsite");

    if (StringUtils.isNotBlank(groupId)) param.put("groupId", groupId);
    if (StringUtils.isNotBlank(boothId)) param.put("boothId", boothId);
    if (StringUtils.isNotBlank(rentYear)) param.put("rentYear", rentYear);
    if (StringUtils.isNotBlank(rentMonth)) param.put("rentMonth", rentMonth);
    if (StringUtils.isNotBlank(rentFeeType)) param.put("rentFeeType", rentFeeType);
    if (StringUtils.isNotBlank(payOnsite)) param.put("payOnsite", payOnsite);

    list = boothRentFee.getRentFeeList(param);

    JSONArray jsonList = new JSONArray();
    jsonList = JSONArray.fromObject(JSONSerializer.toJSON(list));

    model.put("jsonList", jsonList);

    return model;
  }