|
@@ -264,7 +264,7 @@ public class EnterpriseCertificationApproveController {
|
|
|
@ApiOperation(value="列表")
|
|
@ApiOperation(value="列表")
|
|
|
@RequestMapping(value = "pageList",method = RequestMethod.POST)
|
|
@RequestMapping(value = "pageList",method = RequestMethod.POST)
|
|
|
public MessageResult<Map> pageList(
|
|
public MessageResult<Map> pageList(
|
|
|
- String id,
|
|
|
|
|
|
|
+ String isCertification,
|
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
|
@RequestAttribute String subject){
|
|
@RequestAttribute String subject){
|
|
@@ -277,13 +277,27 @@ public class EnterpriseCertificationApproveController {
|
|
|
Map<String,Object> searchParams = new HashMap<>();
|
|
Map<String,Object> searchParams = new HashMap<>();
|
|
|
|
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
- sortList.add(new Sort("id_","asc"));
|
|
|
|
|
|
|
+ sortList.add(new Sort("a.id_","asc"));
|
|
|
|
|
|
|
|
- if (StringUtils.isNotEmpty(id)) {
|
|
|
|
|
- searchParams.put("id","%" + id + "%");
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(isCertification)) {
|
|
|
|
|
+ searchParams.put("isCertification",isCertification);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Page<EnterpriseCertificationApprove> page = enterpriseCertificationApproveService.pageSearch(searchParams,pageIndex,pageSize,true,sortList);
|
|
Page<EnterpriseCertificationApprove> page = enterpriseCertificationApproveService.pageSearch(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
|
|
+ for(EnterpriseCertificationApprove enterpriseCertificationApprove : page.getResult()){
|
|
|
|
|
+ switch (enterpriseCertificationApprove.getIsCertification()){
|
|
|
|
|
+ case "1": enterpriseCertificationApprove.setIsCertificationName("未审批"); break;
|
|
|
|
|
+ case "2": enterpriseCertificationApprove.setIsCertificationName("已审批"); break;
|
|
|
|
|
+ }
|
|
|
|
|
+ User user = userService.get(enterpriseCertificationApprove.getCreateBy());
|
|
|
|
|
+ enterpriseCertificationApprove.setCreateByName(user.getRealName());
|
|
|
|
|
+ Company company = companyService.get(enterpriseCertificationApprove.getCompanyId());
|
|
|
|
|
+ enterpriseCertificationApprove.setCompanyName(company.getName());
|
|
|
|
|
+ user = userService.get(enterpriseCertificationApprove.getApprovePersonId());
|
|
|
|
|
+ if(user != null){
|
|
|
|
|
+ enterpriseCertificationApprove.setApprovePersonName(user.getRealName());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
msgResult.setResult(true);
|
|
msgResult.setResult(true);
|
|
|
msgResult.setData(PojoUtils.pageWrapper(page));
|
|
msgResult.setData(PojoUtils.pageWrapper(page));
|