Search in sources :

Example 86 with Permission

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);
}
Also used : Merchant(com.ikoori.vip.common.persistence.model.Merchant) HashMap(java.util.HashMap) Map(java.util.Map) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Example 87 with Permission

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);
}
Also used : Merchant(com.ikoori.vip.common.persistence.model.Merchant) SignWarpper(com.ikoori.vip.server.modular.biz.warpper.SignWarpper) Sign(com.ikoori.vip.common.persistence.model.Sign) Map(java.util.Map) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Example 88 with Permission

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";
}
Also used : Sign(com.ikoori.vip.common.persistence.model.Sign) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 89 with Permission

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";
}
Also used : WxConfig(com.ikoori.vip.common.persistence.model.WxConfig) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Example 90 with Permission

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));
}
Also used : LogWarpper(com.ikoori.vip.server.modular.system.warpper.LogWarpper) OperationLog(com.ikoori.vip.common.persistence.model.OperationLog) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Aggregations

Permission (com.ikoori.vip.common.annotion.Permission)93 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)92 Merchant (com.ikoori.vip.common.persistence.model.Merchant)55 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)47 HashMap (java.util.HashMap)31 Map (java.util.Map)23 BussinessException (com.ikoori.vip.common.exception.BussinessException)18 Store (com.ikoori.vip.common.persistence.model.Store)12 Coupon (com.ikoori.vip.common.persistence.model.Coupon)11 Card (com.ikoori.vip.common.persistence.model.Card)9 MemberCard (com.ikoori.vip.common.persistence.model.MemberCard)6 StoreCoupon (com.ikoori.vip.common.persistence.model.StoreCoupon)6 User (com.ikoori.vip.common.persistence.model.User)6 ShiroUser (com.ikoori.vip.server.core.shiro.ShiroUser)4 LinkedHashMap (java.util.LinkedHashMap)4 BussinessLog (com.ikoori.vip.common.annotion.log.BussinessLog)3 OperationLog (com.ikoori.vip.common.persistence.model.OperationLog)3 WxConfig (com.ikoori.vip.common.persistence.model.WxConfig)3 LogWarpper (com.ikoori.vip.server.modular.system.warpper.LogWarpper)3 EntityWrapper (com.baomidou.mybatisplus.mapper.EntityWrapper)2