use of com.bc.pmpheep.back.vo.OrgVO in project pmph by BCSquad.
the class SchoolAndTeacherCheckController method orgList.
/**
* <pre>
* 功能描述:获取学校管理员审核列表
* 使用示范:
*
* @param pageNumber 当前页
* @param pageSize 页面大小
* @param orgVO orgVO
* @return 分页数据集
* </pre>
*/
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "查询系统消息列表")
@RequestMapping(value = "/orgList", method = RequestMethod.GET)
public ResponseBean orgList(@RequestParam(name = "pageNumber", defaultValue = "1") Integer pageNumber, @RequestParam("orgName") String orgName, @RequestParam("realname") String realname, @RequestParam("progress") Integer progress, @RequestParam(name = "pageSize") Integer pageSize) {
PageParameter pageParameter = new PageParameter<>();
OrgVO orgVO = new OrgVO();
if (StringUtil.notEmpty(orgName)) {
orgVO.setOrgName(orgName.replaceAll(" ", ""));
}
if (StringUtil.notEmpty(realname)) {
orgVO.setRealname(realname.replaceAll(" ", ""));
}
orgVO.setProgress(progress);
pageParameter.setPageNumber(pageNumber);
pageParameter.setPageSize(pageSize);
pageParameter.setParameter(orgVO);
return new ResponseBean(orgService.getSchoolAdminCheckList(pageParameter));
}
use of com.bc.pmpheep.back.vo.OrgVO in project pmph by BCSquad.
the class OrgUserController method importExcel.
@ResponseBody
@LogDetail(businessType = BUSSINESS_TYPE, logRemark = "机构用户管理界面导入Excel文件")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public ResponseBean importExcel(@RequestParam(name = "file") MultipartFile file, HttpServletRequest request) {
Map<String, Object> map = new HashedMap();
String sessionId = CookiesUtil.getSessionId(request);
HttpSession session = SessionContext.getSession(sessionId);
String uuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
try {
List<OrgVO> list = orgUserService.importExcel(file);
map.put("uuid", uuid);
map.put("list", list);
session.setAttribute(uuid, list);
} catch (CheckedServiceException e) {
return new ResponseBean(e);
} catch (IOException e) {
return new ResponseBean(e);
}
return new ResponseBean(map);
}
use of com.bc.pmpheep.back.vo.OrgVO in project pmph by BCSquad.
the class OrgSeviceTest method testListOrg.
@Test
public void testListOrg() {
OrgVO orgVO = new OrgVO();
orgVO.getOrgName();
PageResult<OrgVO> page = new PageResult<OrgVO>();
PageParameter<OrgVO> pageParameter = new PageParameter<OrgVO>();
pageParameter.setParameter(orgVO);
page = orgService.listOrg(pageParameter);
}
use of com.bc.pmpheep.back.vo.OrgVO in project pmph by BCSquad.
the class OrgSeviceTest method testGetSchoolAdminCheckList.
@Test
public void testGetSchoolAdminCheckList() {
PageParameter pageParameter = new PageParameter<>();
PageResult<OrgVO> pageResult = new PageResult<OrgVO>();
OrgVO orgVO = new OrgVO();
orgVO.setOrgName(null);
orgVO.setAreaId(null);
orgVO.setRealname(null);
pageParameter.setPageNumber(1);
pageParameter.setPageSize(20);
pageParameter.setParameter(orgVO);
pageResult = orgService.getSchoolAdminCheckList(pageParameter);
Assert.assertNotNull("获取学校管理员审核列表失败", pageResult);
}
Aggregations