| | |
| | | if (ids!=null && ids.size()>0 ){ |
| | | list = comEventMapper.pageByComEventExpert(ids, comEvent, pagination); |
| | | } |
| | | else |
| | | { |
| | | list = comEventMapper.pageByComEventExpert(null, comEvent, pagination); |
| | | } |
| | | }else{ |
| | | list = baseMapper.pageByComEvent(comEvent, pagination); |
| | | } |
| | |
| | | }else if (isAdmin){ |
| | | //区三说会堂账号,最高权限全部开放 |
| | | // 是否上报到三说会堂 |
| | | if (comEvent.getCurrentProcessType().equals(4) || comEvent.getReportHall().equals(1)){ |
| | | //已上报到三说会堂,可以操作 |
| | | if (comEvent.getEventProcessStatus().equals(1)){ |
| | | //待受理和待验证状态,可以受理,分配专家 |
| | | //关闭调解和归档 |
| | | comEvent.setArchive(0); |
| | | comEvent.setSolve(0); |
| | | comEvent.setConciliation(0); |
| | | comEvent.setChangeExpert(0); |
| | | } |
| | | else if(comEvent.getEventProcessStatus().equals(2)){ |
| | | //待分配和待验证状态,可以受理,分配专家 |
| | | //关闭调解和归档 |
| | | comEvent.setArchive(0); |
| | | comEvent.setConciliation(0); |
| | | comEvent.setChangeExpert(0); |
| | | if (comEvent.getSpecialistName().equals("待分配")){ |
| | | comEvent.setSolve(0); |
| | | } |
| | | }else if (comEvent.getEventProcessStatus().equals(3)){ |
| | | //新分配给专家并且专家还未受理 |
| | | comEvent.setDistribution(0); |
| | | comEvent.setArchive(0); |
| | | //comEvent.setConciliation(0); |
| | | comEvent.setChangeExpert(0); |
| | | comEvent.setSolve(0); |
| | | } |
| | | else if (comEvent.getEventProcessStatus().equals(5)){ |
| | | //调解中,可以查看,调解,更换专家,删除 |
| | | comEvent.setDistribution(0); |
| | | comEvent.setSolve(0); |
| | | comEvent.setArchive(0); |
| | | } else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventResult().equals(1) && !comEvent.getIsEnd().equals(1)){ |
| | | //失败后转交三说会堂 |
| | | comEvent.setSolve(0); |
| | | comEvent.setDistribution(0); |
| | | //comEvent.setConciliation(0); |
| | | comEvent.setEventProcessStatus(2); |
| | | comEvent.setArchive(0); |
| | | //comEvent.setChangeExpert(0); |
| | | } |
| | | else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventSucceed().equals(2)){ |
| | | //调解完成,可以归档,查看 |
| | | comEvent.setConciliation(0); |
| | | comEvent.setSolve(0); |
| | | comEvent.setDistribution(0); |
| | | comEvent.setChangeExpert(0); |
| | | } |
| | | }else{ |
| | | if(comEvent.getCurrentProcessType()==null) |
| | | { |
| | | //未上报到三说会堂,仅查看 |
| | | comEvent.setArchive(0); |
| | | comEvent.setSolve(0); |
| | |
| | | comEvent.setChangeExpert(0); |
| | | comEvent.setConciliation(0); |
| | | } |
| | | else |
| | | { |
| | | if (comEvent.getCurrentProcessType().equals(4) || comEvent.getReportHall().equals(1)){ |
| | | //已上报到三说会堂,可以操作 |
| | | if (comEvent.getEventProcessStatus().equals(1)){ |
| | | //待受理和待验证状态,可以受理,分配专家 |
| | | //关闭调解和归档 |
| | | comEvent.setArchive(0); |
| | | comEvent.setSolve(0); |
| | | comEvent.setConciliation(0); |
| | | comEvent.setChangeExpert(0); |
| | | } |
| | | else if(comEvent.getEventProcessStatus().equals(2)){ |
| | | //待分配和待验证状态,可以受理,分配专家 |
| | | //关闭调解和归档 |
| | | comEvent.setArchive(0); |
| | | comEvent.setConciliation(0); |
| | | comEvent.setChangeExpert(0); |
| | | if (comEvent.getSpecialistName().equals("待分配")){ |
| | | comEvent.setSolve(0); |
| | | } |
| | | }else if (comEvent.getEventProcessStatus().equals(3)){ |
| | | //新分配给专家并且专家还未受理 |
| | | comEvent.setDistribution(0); |
| | | comEvent.setArchive(0); |
| | | //comEvent.setConciliation(0); |
| | | comEvent.setChangeExpert(0); |
| | | comEvent.setSolve(0); |
| | | } |
| | | else if (comEvent.getEventProcessStatus().equals(5)){ |
| | | //调解中,可以查看,调解,更换专家,删除 |
| | | comEvent.setDistribution(0); |
| | | comEvent.setSolve(0); |
| | | comEvent.setArchive(0); |
| | | } else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventResult().equals(1) && !comEvent.getIsEnd().equals(1)){ |
| | | //失败后转交三说会堂 |
| | | comEvent.setSolve(0); |
| | | comEvent.setDistribution(0); |
| | | //comEvent.setConciliation(0); |
| | | comEvent.setEventProcessStatus(2); |
| | | comEvent.setArchive(0); |
| | | //comEvent.setChangeExpert(0); |
| | | } |
| | | else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventSucceed().equals(2)){ |
| | | //调解完成,可以归档,查看 |
| | | comEvent.setConciliation(0); |
| | | comEvent.setSolve(0); |
| | | comEvent.setDistribution(0); |
| | | comEvent.setChangeExpert(0); |
| | | } |
| | | }else{ |
| | | //未上报到三说会堂,仅查看 |
| | | comEvent.setArchive(0); |
| | | comEvent.setSolve(0); |
| | | comEvent.setDistribution(0); |
| | | comEvent.setChangeExpert(0); |
| | | comEvent.setConciliation(0); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | //上报级别是否匹配当前账号级别 |
| | | if (sysUser.getType().equals(12) ){ |
| | | if (!comEvent.getCurrentProcessType().equals(1)){ |
| | | if (comEvent.getCurrentProcessType()!=null && !comEvent.getCurrentProcessType().equals(1)){ |
| | | perm=0; |
| | | } |
| | | }else if (account.equals("admin")){ |
| | | if (!comEvent.getCurrentProcessType().equals(4)){ |
| | | }else if (StringUtils.equals("admin",account)){ |
| | | if ( comEvent.getCurrentProcessType()!=null && comEvent.getCurrentProcessType()!=4){ |
| | | perm=0; |
| | | } |
| | | }else if (isStreetAccount(sysUser)){ |
| | | if (!comEvent.getCurrentProcessType().equals(3)){ |
| | | if (comEvent.getCurrentProcessType()!=null && comEvent.getCurrentProcessType()!=3){ |
| | | perm=0; |
| | | } |
| | | } |
| | |
| | | comEvent.setSpecialistId(expert.getId()); |
| | | isExpertCheck=true; |
| | | expertId=expert.getId(); |
| | | level=expert.getLevel(); |
| | | id=expert.getCommunityId(); |
| | | // level=expert.getLevel(); |
| | | // id=expert.getCommunityId(); |
| | | comEvent.setCommunityId(expert.getCommunityId()); |
| | | } |
| | | |
| | | |