| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.ruoyi.call.service.IArdCallGroupUserService; |
| | | import com.ruoyi.common.annotation.Anonymous; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | public class ArdCallGroupController extends BaseController { |
| | | @Autowired |
| | | private IArdCallGroupService ardCallGroupService; |
| | | |
| | | @Autowired |
| | | private IArdCallGroupUserService ardCallGroupUserService; |
| | | /** |
| | | * 查询群组列表 |
| | | */ |
| | |
| | | public TableDataInfo list(ArdCallGroup ardCallGroup) { |
| | | startPage(); |
| | | List<ArdCallGroup> list = ardCallGroupService.selectArdCallGroupList(ardCallGroup); |
| | | list.stream().forEach(ardCallGroup1 -> { |
| | | List<SysUser> userList = ardCallGroupUserService.InGroupUsers(ardCallGroup1.getId()); |
| | | ardCallGroup1.setSysUserList(userList); |
| | | }); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @ApiOperation("获取群组详细信息") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardCallGroupService.selectArdCallGroupById(id)); |
| | | ArdCallGroup ardCallGroup = ardCallGroupService.selectArdCallGroupById(id); |
| | | if(ardCallGroup!=null) |
| | | { |
| | | List<SysUser> userList = ardCallGroupUserService.InGroupUsers(ardCallGroup.getId()); |
| | | ardCallGroup.setSysUserList(userList); |
| | | } |
| | | return success(ardCallGroup); |
| | | } |
| | | |
| | | /** |