use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class ShareController method list.
/**
* 获取分享规则列表
*/
@Permission
@RequestMapping(value = "/list")
@ResponseBody
public Object list(String condition) {
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 = shareService.getShareList(page, merchant.getId(), page.getOrderByField(), page.isAsc());
page.setRecords(result);
return super.packForBT(page);
}
use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class SignController method list.
/**
* 获取签到规则列表
*/
@Permission
@RequestMapping(value = "/list")
@ResponseBody
public Object list(String condition) {
Long userId = Long.valueOf(ShiroKit.getUser().getId());
Merchant merchant = merchantService.getMerchantUserId(userId);
Page<Sign> page = new PageFactory<Sign>().defaultPage();
List<Map<String, Object>> result = signService.getSignList(page, null, page.getOrderByField(), page.isAsc(), merchant.getId());
page.setRecords((List<Sign>) new SignWarpper(result).warp());
return super.packForBT(page);
}
use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class SignController method signUpdate.
/**
* 跳转到修改签到规则
*/
@Permission
@RequestMapping("/sign_update/{signId}")
public String signUpdate(@PathVariable Long signId, Model model) {
Sign sign = signService.selectById(signId);
model.addAttribute(sign);
return PREFIX + "sign_edit.html";
}
use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class WxConfigController method detail.
/**
* 公众号管理详情
*/
@Permission
@RequestMapping(value = "/detail/{wxConfigId}")
@ResponseBody
public Object detail(@PathVariable Long wxConfigId, Model model) {
WxConfig wxConfig = wxConfigMapper.selectById(wxConfigId);
model.addAttribute(wxConfig);
return PREFIX + "wxConfig_edit.html";
}
use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.
the class LogController method detail.
/**
* 查询操作日志详情
*/
@RequestMapping("/detail/{id}")
@Permission(Const.ADMIN_NAME)
@ResponseBody
public Object detail(@PathVariable Integer id) {
OperationLog operationLog = operationLogMapper.selectById(id);
Map<String, Object> stringObjectMap = BeanKit.beanToMap(operationLog);
return super.warpObject(new LogWarpper(stringObjectMap));
}
Aggregations