|
|
@@ -27,11 +27,18 @@ public class SysOrganizationController {
|
|
|
*/
|
|
|
@Operation(summary = "团队、渠道、电销组 分页查询", description = "列表页面")
|
|
|
@PostMapping("queryPageList")
|
|
|
- public HttpResult queryPageList(@RequestBody SysOrganizationParam sysOrganizationParam){
|
|
|
+ public HttpResult queryPageList(@Validated @RequestBody SysOrganizationParam sysOrganizationParam){
|
|
|
return sysOrganizationService.queryPageList(sysOrganizationParam);
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @Operation(summary = "团队、渠道、电销组", description = "详情页面")
|
|
|
+ @PostMapping("getDetails")
|
|
|
+ public HttpResult getDetails(@RequestParam("userId") Long userId){
|
|
|
+ return sysOrganizationService.getDetails(userId);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 列表
|
|
|
* @param sysOrganizationParam
|
|
|
@@ -39,7 +46,7 @@ public class SysOrganizationController {
|
|
|
*/
|
|
|
@Operation(summary = "团队、渠道、电销组", description = "左侧列表页面")
|
|
|
@PostMapping("leftList")
|
|
|
- public HttpResult leftList(@RequestBody SysOrganizationParam sysOrganizationParam){
|
|
|
+ public HttpResult leftList(@Validated @RequestBody SysOrganizationParam sysOrganizationParam){
|
|
|
return sysOrganizationService.leftList(sysOrganizationParam);
|
|
|
}
|
|
|
|
|
|
@@ -88,14 +95,14 @@ public class SysOrganizationController {
|
|
|
|
|
|
/**
|
|
|
* 删除团队、电销、渠道关联的用户
|
|
|
- * @param id
|
|
|
+ * @param deleteAssociatedUsers
|
|
|
* @return
|
|
|
*/
|
|
|
-// @Operation(summary = "团队、渠道、电销组 通过ID删除", description = "通过ID删除")
|
|
|
-// @GetMapping("deleteById")
|
|
|
-// public HttpResult deleteById(@RequestParam("id") Long id){
|
|
|
-// return sysOrganizationService.deleteById(id);
|
|
|
-// }
|
|
|
+ @Operation(summary = "删除团队、电销、渠道关联的用户", description = "通过团队、电销、渠道删除")
|
|
|
+ @PostMapping("deleteAssociatedUsers")
|
|
|
+ public HttpResult deleteAssociatedUsers(@Validated @RequestBody DeleteAssociatedUsers deleteAssociatedUsers){
|
|
|
+ return sysOrganizationService.deleteAssociatedUsers(deleteAssociatedUsers);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -105,7 +112,7 @@ public class SysOrganizationController {
|
|
|
*/
|
|
|
@Schema(description = "新增团队、渠道、电销组用户")
|
|
|
@PostMapping("addTeamUsers")
|
|
|
- public HttpResult addTeamUsers(@RequestBody SysOrganizationUserLinkAdd organizationUserLinkAdd){
|
|
|
+ public HttpResult addTeamUsers(@Validated @RequestBody SysOrganizationUserLinkAdd organizationUserLinkAdd){
|
|
|
return sysOrganizationService.addTeamUsers(organizationUserLinkAdd);
|
|
|
}
|
|
|
|
|
|
@@ -117,7 +124,7 @@ public class SysOrganizationController {
|
|
|
*/
|
|
|
@Schema(description = "设置团队、渠道、电销组负责人")
|
|
|
@PostMapping("setResponsiblePerson")
|
|
|
- public HttpResult setResponsiblePerson(@RequestBody SysOrganizationSetPerson setPerson){
|
|
|
+ public HttpResult setResponsiblePerson(@Validated @RequestBody SysOrganizationSetPerson setPerson){
|
|
|
return sysOrganizationService.setResponsiblePerson(setPerson);
|
|
|
}
|
|
|
|