|
|
|
@ -21,6 +21,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
@ -32,13 +34,16 @@ import org.springblade.system.entity.Post;
|
|
|
|
|
import org.springblade.system.service.IDeptService; |
|
|
|
|
import org.springblade.system.service.IPostService; |
|
|
|
|
import org.springblade.system.service.IRoleService; |
|
|
|
|
import org.springblade.system.service.IUserService; |
|
|
|
|
import org.springblade.system.vo.DeptVO; |
|
|
|
|
import org.springblade.system.vo.PostVO; |
|
|
|
|
import org.springblade.system.vo.RoleVO; |
|
|
|
|
import org.springblade.system.vo.UserVO; |
|
|
|
|
import org.springblade.system.wrapper.PostWrapper; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
@ -60,6 +65,8 @@ public class SearchController {
|
|
|
|
|
|
|
|
|
|
private final IPostService postService; |
|
|
|
|
|
|
|
|
|
private final IUserService userService; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 角色信息查询 |
|
|
|
|
*/ |
|
|
|
@ -95,4 +102,21 @@ public class SearchController {
|
|
|
|
|
return R.data(PostWrapper.build().pageVO(pages)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 用户列表查询 |
|
|
|
|
*/ |
|
|
|
|
@ApiImplicitParams({ |
|
|
|
|
@ApiImplicitParam(name = "name", value = "人员姓名", paramType = "query", dataType = "string"), |
|
|
|
|
@ApiImplicitParam(name = "deptName", value = "部门名称", paramType = "query", dataType = "string"), |
|
|
|
|
@ApiImplicitParam(name = "postName", value = "职位名称", paramType = "query", dataType = "string"), |
|
|
|
|
@ApiImplicitParam(name = "current", value = "当前页数", paramType = "query", dataType = "int"), |
|
|
|
|
@ApiImplicitParam(name = "size", value = "每页数量", paramType = "query", dataType = "int") |
|
|
|
|
}) |
|
|
|
|
@ApiOperationSupport(order = 4) |
|
|
|
|
@ApiOperation(value = "用户列表查询", notes = "用户列表查询") |
|
|
|
|
@GetMapping("/user") |
|
|
|
|
public R<IPage<UserVO>> userSearch(@ApiIgnore UserVO user, @ApiIgnore Query query) { |
|
|
|
|
return R.data(userService.selectUserSearch(user, query)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|