use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class MerchantController method list.
/**
* 获取商户列表
*/
@Permission
@RequestMapping(value = "/list", method = RequestMethod.POST)
@ResponseBody
public Object list(@RequestParam(name = "merName", required = false) String merName) {
Page<Merchant> page = new PageFactory<Merchant>().defaultPage();
List<Map<String, Object>> result = merchantDao.getMerchantList(page, merName, page.getOrderByField(), page.isAsc());
page.setRecords((List<Merchant>) new MerchantWarpper(result).warp());
return super.packForBT(page);
}
use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class MerchantController method detail.
/**
* 商户详情
*/
@Permission
@RequestMapping(value = "/merchant_detail/{merchantId}")
public Object detail(@PathVariable Long merchantId, Model model) {
Merchant merchant = merchantMapper.selectById(merchantId);
model.addAttribute(merchant);
return PREFIX + "merchant_detail.html";
}
use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class OrderItemController method orderItemUpdate.
/**
* 跳转到修改订单明细
*/
@Permission
@RequestMapping("/orderItem_update/{orderItemId}")
public String orderItemUpdate(@PathVariable Long orderItemId, Model model) {
OrderItem orderItem = orderItemService.selectById(orderItemId);
model.addAttribute(orderItem);
return PREFIX + "orderItem_edit.html";
}
use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class RedpackLogController method redpackLogUpdate.
/**
* 跳转到修改红包记录
*/
@RequestMapping("/redpackLog_update/{redpackLogId}")
@Permission
public String redpackLogUpdate(@PathVariable Long redpackLogId, Model model) {
RedpackLog redpackLog = redpackLogService.selectById(redpackLogId);
model.addAttribute(redpackLog);
return PREFIX + "redpackLog_edit.html";
}
use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class RedpackLogController method list.
/**
* 获取红包记录列表
*/
@RequestMapping(value = "/list")
@ResponseBody
@Permission
public Object list(String billno, String unionid, Integer sendStatus, String sendS, String sendE, Integer redpackId) {
Long userId = Long.valueOf(ShiroKit.getUser().getId());
Merchant merchant = merchantService.getMerchantUserId(userId);
Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage();
List<Map<String, Object>> result = redpackLogService.getRedpackLogList(page, merchant.getId(), billno, unionid, sendStatus, sendS, sendE, redpackId, page.getOrderByField(), page.isAsc());
page.setRecords((List<Map<String, Object>>) new RedpackLogWarpper(result).warp());
return super.packForBT(page);
}
Aggregations