Search in sources :

Example 46 with Permission

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);
}
Also used : Merchant(com.ikoori.vip.common.persistence.model.Merchant) MerchantWarpper(com.ikoori.vip.server.modular.biz.warpper.MerchantWarpper) 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 47 with Permission

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

Example 48 with Permission

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

Example 49 with Permission

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

Example 50 with Permission

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);
}
Also used : Merchant(com.ikoori.vip.common.persistence.model.Merchant) Map(java.util.Map) RedpackLogWarpper(com.ikoori.vip.server.modular.biz.warpper.RedpackLogWarpper) 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