提交修改

This commit is contained in:
quyixiao 2020-10-21 11:28:00 +08:00
parent 9177eab432
commit 79777b07fa

View File

@ -17,6 +17,10 @@ import com.lz.modules.flow.service.StaffRoleDepartmentService;
import com.lz.modules.flow.service.StaffRoleService;
import com.lz.modules.sys.entity.SysMenuEntity;
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.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -34,6 +38,7 @@ import java.util.stream.Collectors;
*/
@RestController
@RequestMapping("user/lzstaffrole")
@Api(tags = "考评组管理员管理")
public class StaffRoleController {
@Autowired
private StaffRoleService staffRoleService;
@ -63,9 +68,11 @@ public class StaffRoleController {
}
@RequestMapping("/listByGroupId")
public R listByGroupId(Long id ) {
List<StaffRole> staffRoles = staffRoleService.selectByGroupId(id);
@PostMapping("/listByGroupId")
@ApiOperation(value="根据groupId获取管理员列表")
@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);
}