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";
}
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);
}
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);
}
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";
}
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);
}
Aggregations