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; }
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; }
public String getAllCourtInfo() { CourtService court = new CourtService(); setResultMap(C.code.COURT, C.message.SUCCESS, C.name.VENUE_MAPNAME, court.getCourtInfo()); return SUCCESS; }