| | |
| | | terms.put("partyName", partyName); |
| | | } |
| | | CtUserDTO loginUser = custClient.clientGetUserAll(userId); |
| | | CtUnitDTO unitById = custClient.getUnitById(loginUser.getUnitId()); |
| | | //如果是政法委,赋予综治中心查看案件的权限,政法委不接收案子处理,只负责指导,所以可以直接赋予 |
| | | if (201 == unitById.getUnitType()) { |
| | | CtUnitDTO bjZzzx = custClient.getBjZzzx(unitById.getId()); |
| | | if (bjZzzx != null) |
| | | loginUser.setUnitId(bjZzzx.getId()); |
| | | } |
| | | if (status == 1) { |
| | | terms.put("candeUnitId", loginUser.getUnitId()); |
| | | } else { |
| | |
| | | terms.put("partyName", partyName); |
| | | } |
| | | CtUserDTO loginUser = custClient.clientGetUserAll(userId); |
| | | CtUnitDTO unitById = custClient.getUnitById(loginUser.getUnitId()); |
| | | //如果是政法委,赋予综治中心查看案件的权限,政法委不接收案子处理,只负责指导,所以可以直接赋予 |
| | | if (201 == unitById.getUnitType()) { |
| | | CtUnitDTO bjZzzx = custClient.getBjZzzx(unitById.getId()); |
| | | if (bjZzzx != null) |
| | | loginUser.setUnitId(bjZzzx.getId()); |
| | | } |
| | | if (status == 1) { |
| | | terms.put("candeUnitId", loginUser.getUnitId()); |
| | | } else { |
| | |
| | | terms.put("partyName", partyName); |
| | | } |
| | | CtUserDTO loginUser = custClient.clientGetUserAll(userId); |
| | | CtUnitDTO unitById = custClient.getUnitById(loginUser.getUnitId()); |
| | | //如果是政法委,赋予综治中心查看案件的权限,政法委不接收案子处理,只负责指导,所以可以直接赋予 |
| | | if (201 == unitById.getUnitType()) { |
| | | CtUnitDTO bjZzzx = custClient.getBjZzzx(unitById.getId()); |
| | | if (bjZzzx != null) |
| | | loginUser.setUnitId(bjZzzx.getId()); |
| | | } |
| | | // 不予受理,查询case_dismiss表 |
| | | if (status == 3) { |
| | | terms.put("disUnitId", loginUser.getUnitId()); |
| | |
| | | } |
| | | terms.put("caseTaskType", caseTaskType); |
| | | CtUserDTO loginUser = custClient.clientGetUserAll(userId); |
| | | CtUnitDTO unitById = custClient.getUnitById(loginUser.getUnitId()); |
| | | //如果是政法委,赋予综治中心查看案件的权限,政法委不接收案子处理,只负责指导,所以可以直接赋予 |
| | | if (201 == unitById.getUnitType()) { |
| | | CtUnitDTO bjZzzx = custClient.getBjZzzx(unitById.getId()); |
| | | if (bjZzzx != null) |
| | | loginUser.setUnitId(bjZzzx.getId()); |
| | | } |
| | | terms.put("candeUnitId", loginUser.getUnitId()); |
| | | |
| | | String mediatorType = request.getParameter("mediatorType"); |
| | | if(ObjectUtils.isNotEmpty(mediatorType)){ |
| | | if (ObjectUtils.isNotEmpty(mediatorType)) { |
| | | terms.put("mediatorType", mediatorType); |
| | | terms.put("mediatorId", loginUser.getId()); |
| | | } |
| | |
| | | terms.put("partyName", partyName); |
| | | } |
| | | CtUserDTO loginUser = custClient.clientGetUserAll(userId); |
| | | CtUnitDTO unitById = custClient.getUnitById(loginUser.getUnitId()); |
| | | //如果是政法委,赋予综治中心查看案件的权限,政法委不接收案子处理,只负责指导,所以可以直接赋予 |
| | | if (201 == unitById.getUnitType()) { |
| | | CtUnitDTO bjZzzx = custClient.getBjZzzx(unitById.getId()); |
| | | if (bjZzzx != null) |
| | | loginUser.setUnitId(bjZzzx.getId()); |
| | | } |
| | | if (caseTaskType == 1) { |
| | | terms.put("applyUnitId", loginUser.getUnitId()); |
| | | } else { |
| | |
| | | } |
| | | PageRequest pageRequest = PageRequest.of(page - 1, size, sort); |
| | | CtUserDTO loginUser = custClient.clientGetUserAll(userId); |
| | | CtUnitDTO unitById = custClient.getUnitById(loginUser.getUnitId()); |
| | | //如果是政法委,赋予综治中心查看案件的权限,政法委不接收案子处理,只负责指导,所以可以直接赋予 |
| | | if (201 == unitById.getUnitType()) { |
| | | CtUnitDTO bjZzzx = custClient.getBjZzzx(unitById.getId()); |
| | | if (bjZzzx != null) |
| | | loginUser.setUnitId(bjZzzx.getId()); |
| | | } |
| | | terms.put("auditUnitId", loginUser.getUnitId()); |
| | | terms.put("applyStatus", status); |
| | | return ReturnSucUtils.getRepInfo(service.pageMyTaskSh(pageRequest, type, terms)); |
| | |
| | | } |
| | | PageRequest pageRequest = PageRequest.of(page - 1, size, sort); |
| | | CtUserDTO loginUser = custClient.clientGetUserAll(userId); |
| | | CtUnitDTO unitById = custClient.getUnitById(loginUser.getUnitId()); |
| | | //如果是政法委,赋予综治中心查看案件的权限,政法委不接收案子处理,只负责指导,所以可以直接赋予 |
| | | if (201 == unitById.getUnitType()) { |
| | | CtUnitDTO bjZzzx = custClient.getBjZzzx(unitById.getId()); |
| | | if (bjZzzx != null) |
| | | loginUser.setUnitId(bjZzzx.getId()); |
| | | } |
| | | terms.put("applyUnitId", loginUser.getUnitId()); |
| | | return ReturnSucUtils.getRepInfo(service.pageMyTaskShWSQD(pageRequest, terms)); |
| | | } catch (Exception e) { |
| | |
| | | } |
| | | PageRequest pageRequest = PageRequest.of(page - 1, size, sort); |
| | | CtUserDTO loginUser = custClient.clientGetUserAll(userId); |
| | | CtUnitDTO unitById = custClient.getUnitById(loginUser.getUnitId()); |
| | | //如果是政法委,赋予综治中心查看案件的权限,政法委不接收案子处理,只负责指导,所以可以直接赋予 |
| | | if (201 == unitById.getUnitType()) { |
| | | CtUnitDTO bjZzzx = custClient.getBjZzzx(unitById.getId()); |
| | | if (bjZzzx != null) |
| | | loginUser.setUnitId(bjZzzx.getId()); |
| | | } |
| | | Page<FrontPageListDTO> frontPageListDTOPage = null; |
| | | if (StringUtils.isNotBlank(loginUser.getUnitId())) { |
| | | terms.put("type", status); |
| | |
| | | } |
| | | |
| | | CtUserDTO loginUser = custClient.clientGetUserAll(userId); |
| | | CtUnitDTO unitById = custClient.getUnitById(loginUser.getUnitId()); |
| | | //如果是政法委,赋予综治中心查看案件的权限,政法委不接收案子处理,只负责指导,所以可以直接赋予 |
| | | if (201 == unitById.getUnitType()) { |
| | | CtUnitDTO bjZzzx = custClient.getBjZzzx(unitById.getId()); |
| | | if (bjZzzx != null) |
| | | loginUser.setUnitId(bjZzzx.getId()); |
| | | } |
| | | terms.put("handleUnitId", loginUser.getUnitId()); |
| | | // 排序 |
| | | Sort sort = null; |
| | |
| | | |
| | | /** |
| | | * 测试接口 |
| | | * @url {ctx}/api/web/caseTask/test |
| | | * |
| | | * @return Object |
| | | * @url {ctx}/api/web/caseTask/test |
| | | */ |
| | | @GetMapping("/test") |
| | | public Object test(@RequestParam(value = "caseId") String caseId, |
| | | @RequestParam(value = "oldTaskId") String oldTaskId, @RequestParam(value = "newTaskId") String newTaskId, |
| | | @RequestParam(value = "oldProcess") String oldProcess,@RequestParam(value = "newProcess") String newProcess, |
| | | @RequestParam(value = "oldTaskId") String oldTaskId, @RequestParam(value = "newTaskId") String newTaskId, |
| | | @RequestParam(value = "oldProcess") String oldProcess, @RequestParam(value = "newProcess") String newProcess, |
| | | @RequestParam(value = "ownerIds") String ownerIds, @RequestParam(value = "userId") String userId, |
| | | @RequestParam(value = "handleStatus") String handleStatus) { |
| | | try { |
| | | CaseTask oldTask = null; |
| | | if(StringUtils.isNotBlank(oldTaskId)){ |
| | | if (StringUtils.isNotBlank(oldTaskId)) { |
| | | oldTask = service.getById(oldTaskId); |
| | | } |
| | | CaseTask newTask = null; |
| | | if(StringUtils.isNotBlank(newTaskId)){ |
| | | if (StringUtils.isNotBlank(newTaskId)) { |
| | | newTask = service.getById(newTaskId); |
| | | } |
| | | List<String> ownerIdList = Arrays.asList(ownerIds.split(",")); |