| | |
| | | }else if (comEvent.getCurrentProcessType().equals(2)){ |
| | | //上报到社区后,增加分配专家权限 |
| | | if (comEvent.getEventProcessStatus().equals(1) || comEvent.getEventProcessStatus().equals(2)){ |
| | | //待受理和待验证状态,可以受理,分配专家 |
| | | //待受理和待验证状态,可以受理,更换专家 |
| | | //关闭调解和归档 |
| | | comEvent.setArchive(0); |
| | | comEvent.setConciliation(0); |
| | | comEvent.setDistribution(0); |
| | | } else if (comEvent.getEventProcessStatus().equals(5)){ |
| | | //调解中,可以查看,调解,更换专家,删除 |
| | | comEvent.setSolve(0); |
| | | comEvent.setArchive(0); |
| | | } else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventSucceed().equals(2)){ |
| | | //调解完成,可以归档,查看 |
| | | //关闭所有权限 |
| | | comEvent.setDistribution(0); |
| | | comEvent.setChangeExpert(0); |
| | | comEvent.setSolve(0); |
| | | comEvent.setConciliation(0); |
| | | comEvent.setArchive(0); |
| | | } |
| | | } |
| | | else{ |
| | |
| | | ComSanshuoExpert specter = comSanShuoExpertService.getById(specialistId); |
| | | comEvent.setSpecialistAcceptTime(new Date()); |
| | | comEvent.setSpecialistName(specter.getName()); |
| | | comEvent.setEventProcessStatus(SanShuoEventStatusEnum.ACCEPT.getCode()); |
| | | comEvent.setEventProcessStatus(SanShuoEventStatusEnum.UNDO.getCode()); |
| | | int flag = baseMapper.updateById(comEvent); |
| | | //添加一条对应记录 |
| | | comEventMapper.insertEventAndExpertRecord(id, specialistId,1); |