|
|
@@ -56,6 +56,13 @@ public class VipGroupActivityController extends BaseController {
|
|
|
return succeed(vipGroupActivityService.addVipGroupActivity(vipGroupActivityAddDto));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "获取活动方案")
|
|
|
+ @PostMapping("/get")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('vipGroupActivity/get')")
|
|
|
+ public Object get(Integer id){
|
|
|
+ return succeed(vipGroupActivityService.get(id));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "分页查询活动方案")
|
|
|
@GetMapping("/queryPage")
|
|
|
@PreAuthorize("@pcs.hasPermissions('vipGroupActivity/queryPage')")
|
|
|
@@ -64,17 +71,17 @@ public class VipGroupActivityController extends BaseController {
|
|
|
if(sysUser == null){
|
|
|
return failed("用户信息获取失败");
|
|
|
}
|
|
|
- Employee employee = employeeDao.get(sysUser.getId());
|
|
|
- if (StringUtils.isEmpty(queryInfo.getOrganId())) {
|
|
|
- queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
- }else if(StringUtils.isEmpty(employee.getOrganIdList())){
|
|
|
- return failed("用户所在分部异常");
|
|
|
- }else {
|
|
|
- List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
- if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){
|
|
|
- return failed("非法请求");
|
|
|
- }
|
|
|
+ Employee employee = employeeDao.get(sysUser.getId());
|
|
|
+ if (StringUtils.isEmpty(queryInfo.getOrganId())) {
|
|
|
+ queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
+ }else if(StringUtils.isEmpty(employee.getOrganIdList())){
|
|
|
+ return failed("用户所在分部异常");
|
|
|
+ }else {
|
|
|
+ List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
+ if(!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))){
|
|
|
+ return failed("非法请求");
|
|
|
}
|
|
|
+ }
|
|
|
return succeed(vipGroupActivityService.queryPage(queryInfo));
|
|
|
}
|
|
|
|