示例#1
0
 @Action("toShare")
 public String toShare() {
   try {
     TbBdgArRecord record = bdgArRecordModel.quereyBdgArRecordById(recordId);
     record.setShares(record.getShares() + 1);
     bdgArRecordModel.updateBdgArRecord(record);
   } catch (Exception e) {
     setErrorMessage(e);
     log.error(e.getMessage(), e);
   }
   return JSON;
 }
示例#2
0
 /**
  * 下一页数据
  *
  * @return
  */
 @Action("nextRecords")
 public String nextBdgRecords() {
   try {
     if (start == null) {
       start = SysConfig.PHONE_REQ_START;
     }
     if (limit == null) {
       limit = SysConfig.PHONE_REQ_LIMIT;
     }
     records = bdgArRecordModel.quereNextBdgArRecordsOfPhone(start, limit, max_id);
   } catch (Exception e) {
     setErrorMessage(e);
     log.error(e.getMessage(), e);
   }
   return JSON;
 }
示例#3
0
 @Action("orderShare")
 public String orderShare() {
   try {
     if (start == null) {
       start = SysConfig.PHONE_REQ_START;
     }
     if (limit == null) {
       limit = SysConfig.PHONE_REQ_LIMIT;
     }
     records = bdgArRecordModel.orderShare(start, limit);
   } catch (Exception e) {
     setErrorMessage(e);
     log.error(e.getMessage(), e);
   }
   return JSON;
 }