|
|
|
@ -170,7 +170,7 @@ public class UserController {
|
|
|
|
|
@PostMapping("/pointsTran")
|
|
|
|
|
@Transactional
|
|
|
|
|
@AdminTokenValid
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "147")
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "138")
|
|
|
|
|
public Result pointsTran(@Validated @RequestBody PTParam param) {
|
|
|
|
|
UserPointsRecords userPointsRecords = new UserPointsRecords();
|
|
|
|
|
Integer userId = param.getUserId();
|
|
|
|
@ -268,7 +268,7 @@ public class UserController {
|
|
|
|
|
@Operation(summary = "部门级别重命名")
|
|
|
|
|
@PostMapping("/renameDepartmentGroup")
|
|
|
|
|
@AdminTokenValid
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "148")
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "139")
|
|
|
|
|
public Result departmentGroup(@Validated @RequestBody UpdDGParam param) {
|
|
|
|
|
UpdateWrapper<QywxDepartmentGroup> up = new UpdateWrapper<>();
|
|
|
|
|
up.eq("id", param.getId()).set("name", param.getName()).set("updateAt", LocalDateTime.now());
|
|
|
|
@ -289,7 +289,7 @@ public class UserController {
|
|
|
|
|
@Operation(summary = "部门级别添加部门", description = "批量添加部门id")
|
|
|
|
|
@PostMapping("/departmentGroupAdd")
|
|
|
|
|
@AdminTokenValid
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "148")
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "139")
|
|
|
|
|
public Result departmentGroupAdd(@Validated @RequestBody dgAddParam param) {
|
|
|
|
|
qywxDepartmentGroupLinkService.groupAddDepartment(param.getId(), param.getDepartmentIdList(), LocalDateTime.now());
|
|
|
|
|
return Result.success("添加完成");
|
|
|
|
@ -312,7 +312,7 @@ public class UserController {
|
|
|
|
|
@Operation(summary = "部门级别删除部门", description = "批量删除部门id")
|
|
|
|
|
@PostMapping("/departmentGroupDel")
|
|
|
|
|
@AdminTokenValid
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "148")
|
|
|
|
|
@AdminCheckAuthorityAnnotation(jurisdictionId = "139")
|
|
|
|
|
public Result departmentGroupDel(@Validated @RequestBody dgAddParam param) {
|
|
|
|
|
QueryWrapper<QywxDepartmentGroupLink> qw = new QueryWrapper<>();
|
|
|
|
|
qw.eq("groupId", param.getId());
|
|
|
|
|