|
|
|
@ -121,6 +121,38 @@ public class ExpertController extends JeecgController<Expert, IExpertService> { |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ApiOperation(value="专家管理-分页列表查询/管理员角色", notes="专家管理-分页列表查询/管理员角色") |
|
|
|
|
@GetMapping(value = "/listadminstatic") |
|
|
|
|
public Result<IPage<Expert>> listadminstatic(Expert expert, |
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
//用于查看所有信息无论是否审核,无论哪个部门
|
|
|
|
|
QueryWrapper<Expert> queryWrapper = QueryGenerator.initQueryWrapper(expert, req.getParameterMap()); |
|
|
|
|
queryWrapper.eq("isdone","Y"); |
|
|
|
|
queryWrapper.eq("adminopen","2"); |
|
|
|
|
queryWrapper.eq("compopen","2"); |
|
|
|
|
Page<Expert> page = new Page<Expert>(pageNo, pageSize); |
|
|
|
|
IPage<Expert> pageList = expertService.page(page, queryWrapper); |
|
|
|
|
pageList.getRecords().forEach(experttemp -> { |
|
|
|
|
//开始用于修改数据
|
|
|
|
|
SysUser sysUser = sysUserService.query().eq("username",experttemp.getSeusername()).one(); |
|
|
|
|
String depid = expertService.getdeps(sysUser.getId()); |
|
|
|
|
SysDepart sysDepart = sysDepartService.getById(depid); |
|
|
|
|
experttemp.setRealname(sysUser.getRealname()); |
|
|
|
|
experttemp.setWorkon(sysUser.getWorkNo()); |
|
|
|
|
experttemp.setSex(sysUser.getSex()); |
|
|
|
|
experttemp.setTopPic(sysUser.getAvatar()); |
|
|
|
|
experttemp.setPhone(sysUser.getPhone()); |
|
|
|
|
experttemp.setEmails(sysUser.getEmail()); |
|
|
|
|
experttemp.setSsdep(sysDepart.getDepartName()); |
|
|
|
|
experttemp.setPsd(sysUser.getPassword()); |
|
|
|
|
experttemp.setSepsd(sysUser.getPassword()); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ApiOperation(value="专家管理-分页列表查询/县区管理员角色", notes="专家管理-分页列表查询/县区管理员角色") |
|
|
|
|
@GetMapping(value = "/listcounty") |
|
|
|
|
public Result<IPage<Expert>> listcounty(Expert expert, |
|
|
|
|