Ejemplo n.º 1
0
 /** 添加活动 */
 @Action(value = "addEvent")
 public void addEvent() {
   try {
     this.mod = this.eventService.save(mod);
     super.successResponse(this.mod);
   } catch (Exception e) {
     e.printStackTrace();
     LOG.error(e.getMessage());
     super.faileResponse(ConstantOur.APP_ERROR_MSG);
   }
 }
Ejemplo n.º 2
0
 /** 活动列表 */
 @Action(value = "eventList")
 public void eventList() {
   try {
     this.pager = this.eventService.findAll(pager, mod);
     super.successResponse(pager);
   } catch (Exception e) {
     e.printStackTrace();
     LOG.error(e.getMessage());
     super.faileResponse(ConstantOur.APP_ERROR_MSG);
   }
 }
Ejemplo n.º 3
0
 /** 活动报名 */
 @Action(value = "eventEnroll")
 public void eventEnroll() {
   try {
     ExecuteResult<String> result = this.eventService.eventEnroll(mod);
     if (result.isSuccess()) {
       super.successResponse("");
     } else {
       super.faileResponse(result.getResult());
     }
   } catch (Exception e) {
     e.printStackTrace();
     LOG.error(e.getMessage());
     super.faileResponse(ConstantOur.APP_ERROR_MSG);
   }
 }