| | |
| | | } |
| | | |
| | | /** |
| | | * 根据编号查询单个 |
| | | * 根据督办编号查询督办信息 |
| | | * @url {ctx}/api/web/caseSupervise/getById |
| | | * @param id 主键编号 |
| | | * @return Object |
| | |
| | | } |
| | | |
| | | /** |
| | | * 督办信息查询 |
| | | * 督办信息分页查询 |
| | | * @url {ctx}/api/web/caseSupervise/pageCaseSupervise |
| | | * @param page 页码 |
| | | * @param size 每页数量 |
| | | * @param caseId 主键编号 |
| | | * @param type 查询类型 0:与案件相关信息 ,1:与案件和组织相关信息 |
| | | * @return Object |
| | | */ |
| | | @GetMapping("/pageCaseSupervise") |
| | | public Object pageCaseSupervise(@RequestParam(value = "page") int page, @RequestParam(value = "size") int size, |
| | | @RequestParam(value = "caseId") String caseId, @RequestParam(value = "supStatus") int supStatus, |
| | | @CurrentUser String userId) { |
| | | @RequestParam(value = "caseId") String caseId, |
| | | @RequestParam(value = "type") int type, @CurrentUser String userId) { |
| | | try { |
| | | // 督办状态,0:未回复,1:已回复 |
| | | Integer supStatus = 0; |
| | | if(StringUtils.isNotBlank(request.getParameter("supStatus"))){ |
| | | supStatus = Integer.valueOf(request.getParameter("supStatus")); |
| | | } |
| | | Sort sort = Sort.by(Sort.Direction.DESC, "create_time"); |
| | | PageRequest pageRequest = PageRequest.of(page-1, size, sort); |
| | | return ReturnSucUtils.getRepInfo(service.pageCaseSupervise(caseId, pageRequest, supStatus, userId)); |
| | | return ReturnSucUtils.getRepInfo(service.pageCaseSupervise(caseId, pageRequest, supStatus, userId, type)); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |