@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; }
/** * 下一页数据 * * @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; }
@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; }