コード例 #1
0
  public String deleteCourtInfo() {
    setResultMap(C.code.COURT, C.message.FAIL);
    paramList.clear();
    paramList.add(venuesName);

    CourtService court = new CourtService();
    if (court.deleteCourtInfo(paramList) > 0) setResultMap(C.code.COURT, C.message.SUCCESS);
    return SUCCESS;
  }
コード例 #2
0
  public String addCourtInfo() {
    setResultMap(C.code.COURT, C.message.FAIL);

    paramList.clear();
    paramList.add(sportId);
    paramList.add(venuesName);
    paramList.add(locationNum);
    paramList.add(venuesCharge);
    paramList.add(isOpen);
    paramList.add(openTime);
    paramList.add(closeTime);

    CourtService court = new CourtService();
    if (court.insertCourtInfo(paramList) > 0) setResultMap(C.code.COURT, C.message.SUCCESS);
    return SUCCESS;
  }
コード例 #3
0
 public String getAllCourtInfo() {
   CourtService court = new CourtService();
   setResultMap(C.code.COURT, C.message.SUCCESS, C.name.VENUE_MAPNAME, court.getCourtInfo());
   return SUCCESS;
 }