Search in sources :

Example 11 with Permission

use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.

the class ShareLogController method shareLogUpdate.

/**
 * 跳转到修改分享日志
 */
@Permission
@RequestMapping("/shareLog_update/{shareLogId}")
public String shareLogUpdate(@PathVariable Long shareLogId, Model model) {
    ShareLog shareLog = shareLogService.selectById(shareLogId);
    model.addAttribute(shareLog);
    return PREFIX + "shareLog_edit.html";
}
Also used : ShareLog(com.ikoori.vip.common.persistence.model.ShareLog) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 12 with Permission

use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.

the class ShareLogController method list.

/**
 * 获取分享日志列表
 */
@Permission
@RequestMapping(value = "/list")
@ResponseBody
public Object list(String shareName, String receiveName, String mobile, Integer receiveStatus) {
    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 = shareLogService.getShareLogList(page, shareName, receiveName, receiveStatus, mobile, merchant.getId(), page.getOrderByField(), page.isAsc());
    page.setRecords(result);
    return super.packForBT(page);
}
Also used : Merchant(com.ikoori.vip.common.persistence.model.Merchant) 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 13 with Permission

use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.

the class SignLogController method list.

/**
 * 获取签到记录列表
 */
@Permission
@RequestMapping(value = "/list")
@ResponseBody
public Object list(String uname, String nickname, String mobile, String signS, String signE) {
    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 = signLogService.getSignLogList(page, uname, nickname, mobile, signS, signE, merchant.getId(), page.getOrderByField(), page.isAsc());
    page.setRecords(result);
    return super.packForBT(page);
}
Also used : Merchant(com.ikoori.vip.common.persistence.model.Merchant) 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 14 with Permission

use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.

the class StoreEmployeeController method storeEmployeeAdd.

/**
 * 跳转到添加员工管理
 */
@Permission
@RequestMapping("/storeEmployee_add")
public String storeEmployeeAdd(Model model) {
    Long userId = Long.valueOf(ShiroKit.getUser().getId());
    Merchant merchant = merchantService.getMerchantUserId(userId);
    Map<String, Object> condition = new HashMap<String, Object>();
    condition.put("merchantId", merchant.getId());
    List<Store> stores = storeService.selectByCondition(condition);
    model.addAttribute("roles", RoleType.values());
    // 查询店铺
    model.addAttribute("stores", stores);
    return PREFIX + "storeEmployee_add.html";
}
Also used : Merchant(com.ikoori.vip.common.persistence.model.Merchant) HashMap(java.util.HashMap) Store(com.ikoori.vip.common.persistence.model.Store) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 15 with Permission

use of com.ikoori.vip.common.annotion.Permission in project vip by guangdada.

the class StoreEmployeeController method list.

/**
 * 获取员工管理列表
 */
@Permission
@RequestMapping(value = "/list")
@ResponseBody
public Object list(String employeeName, String mobile, Integer sex, Long storeId, Long roleId) {
    Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage();
    List<Map<String, Object>> result = storeEmployeeService.getStoreEmployeeList(page, employeeName, mobile, sex, storeId, roleId, page.getOrderByField(), page.isAsc());
    page.setRecords((List<Map<String, Object>>) new StoreEmployeeWarpper(result).warp());
    return super.packForBT(page);
}
Also used : StoreEmployeeWarpper(com.ikoori.vip.server.modular.biz.warpper.StoreEmployeeWarpper) 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)

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