提交修改
This commit is contained in:
parent
9177eab432
commit
79777b07fa
@ -17,6 +17,10 @@ import com.lz.modules.flow.service.StaffRoleDepartmentService;
|
|||||||
import com.lz.modules.flow.service.StaffRoleService;
|
import com.lz.modules.flow.service.StaffRoleService;
|
||||||
import com.lz.modules.sys.entity.SysMenuEntity;
|
import com.lz.modules.sys.entity.SysMenuEntity;
|
||||||
import com.lz.modules.sys.entity.SysRoleEntity;
|
import com.lz.modules.sys.entity.SysRoleEntity;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@ -34,6 +38,7 @@ import java.util.stream.Collectors;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("user/lzstaffrole")
|
@RequestMapping("user/lzstaffrole")
|
||||||
|
@Api(tags = "考评组管理员管理")
|
||||||
public class StaffRoleController {
|
public class StaffRoleController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private StaffRoleService staffRoleService;
|
private StaffRoleService staffRoleService;
|
||||||
@ -63,9 +68,11 @@ public class StaffRoleController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping("/listByGroupId")
|
@PostMapping("/listByGroupId")
|
||||||
public R listByGroupId(Long id ) {
|
@ApiOperation(value="根据groupId获取管理员列表")
|
||||||
List<StaffRole> staffRoles = staffRoleService.selectByGroupId(id);
|
@ApiImplicitParam(name = "groupId",value = "组id",defaultValue = "1",required = true, dataType = "Long",paramType = "query")
|
||||||
|
public R listByGroupId( Long groupId ) {
|
||||||
|
List<StaffRole> staffRoles = staffRoleService.selectByGroupId(groupId);
|
||||||
return R.ok().put("staffRoles", staffRoles);
|
return R.ok().put("staffRoles", staffRoles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user