| | |
| | | |
| | | import cn.hutool.core.date.DateTime; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.lang.generator.SnowflakeGenerator; |
| | | import cn.hutool.core.util.NumberUtil; |
| | | import cn.hutool.core.util.RandomUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | |
| | | // } |
| | | ComMediateType category = commediateTypeService.getById(comEvent1.getEventCategory()); |
| | | comEvent1.setEventCategoryName(category.getName()); |
| | | comEvent1.setExpertAvatar(comSanShuoExpertService.getById(comEvent1.getSpecialistId()).getAvatar()); |
| | | }); |
| | | return R.ok(list); |
| | | } |
| | |
| | | if (!flag) { |
| | | return R.fail(ReturnMsgConstants.DATA_EXIST); |
| | | } |
| | | //提交不视为一次流转记录,不保存图片 |
| | | saveEventImageList(comEvent.getImages(), comEvent.getId(),null,1); |
| | | return R.ok(ReturnMsgConstants.SAVE_SUCCESS); |
| | | } |
| | |
| | | /* if (checkExist(comEvent.getOrderSn(), comEvent.getId())) { |
| | | return R.fail(ReturnMsgConstants.DATA_EXIST); |
| | | }*/ |
| | | //清除专家信息 |
| | | comEvent.setSpecialistId(null); |
| | | comEvent.setSpecialistName(null); |
| | | int flag = baseMapper.updateById(comEvent); |
| | | return flag > 0 ? R.ok(comEvent, ReturnMsgConstants.UPDATE_SUCCESS) : R.fail(ReturnMsgConstants.UPDATE_FALSE); |
| | | } |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R conciliationEvent(ComEventConciliationVO comEventConciliationVO, LoginUserInfoVO loginUserInfo) { |
| | | saveEventImageList(comEventConciliationVO.getImages(), comEventConciliationVO.getId(),null,4); |
| | | ComEvent comEvent = baseMapper.selectById(comEventConciliationVO.getId()); |
| | | comEvent.setEventSucceed(comEventConciliationVO.getEventSucceed()); |
| | | comEvent.setEventResult(comEventConciliationVO.getEventResult()); |
| | | comEvent.setReportSuperior(comEventConciliationVO.getReportSuperior()); |
| | | if(comEventConciliationVO.getEventSucceed().equals(2) || comEventConciliationVO.getEventSucceed().equals(1)){ |
| | | if(comEventConciliationVO.getEventSucceed().equals(2)){ |
| | | comEvent.setEventProcessStatus(6); |
| | | } |
| | | comEvent.setCurrentEventProcessResult(comEventConciliationVO.getCurrentEventProcessResult()); |
| | |
| | | comEventTransferRecord.setSpecialistName(comEvent.getSpecialistName()); |
| | | comEventTransferRecord.setEventResult(comEvent.getEventSucceed()); |
| | | comEventTransferRecord.setEventStatus(comEvent.getEventProcessStatus()); |
| | | saveEventImageList(comEvent.getImages(),comEvent.getId(),comEventTransferRecord.getId(),4); |
| | | //雪花id失效,使用eventId随机生成 |
| | | comEventTransferRecord.setId(Snowflake.getId()); |
| | | //saveEventImageList(comEvent.getImages(),comEvent.getId(),comEventTransferRecord.getId(),4); |
| | | saveEventImageList(comEventConciliationVO.getImages(), comEventConciliationVO.getId(),comEventTransferRecord.getId(),4); |
| | | comEventTransferRecordService.insertComEventTransferRecord(comEventTransferRecord); |
| | | return flag > 0 ? R.ok() : R.fail(ReturnMsgConstants.UPDATE_FALSE); |
| | | } |
| | |
| | | map.put("eventDetail", comEventDetailVO); |
| | | List<ComEventTransferRecord> transferRecord = comEventTransferRecordService.list(new QueryWrapper<ComEventTransferRecord>().lambda().eq(ComEventTransferRecord::getEventId, id)); |
| | | transferRecord.forEach(comEventTransferRecord -> { |
| | | List<ComEventResource> list = comEventResourceService.list(new QueryWrapper<ComEventResource>().lambda().eq(ComEventResource::getRefId, comEvent.getId())); |
| | | List<ComEventResource> list = comEventResourceService.list(new QueryWrapper<ComEventResource>().lambda().eq(ComEventResource::getRefId, comEvent.getId()).notIn(ComEventResource::getStatus,(1)).eq(ComEventResource::getTransferId, comEventTransferRecord.getId())); |
| | | List<ComEventRequestImageVO> ImageVO = CopyUtil.deepCopyListObject(list, ComEventRequestImageVO.class); |
| | | comEventTransferRecord.setImages(ImageVO); |
| | | }); |
| | |
| | | return R.ok(calculateList); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R archiveRequest(ComEventArchiveVO comEventArchiveVO, LoginUserInfoVO sysUser) { |
| | |
| | | comEventTransferRecord.setSpecialistName(comEvent.getSpecialistName()); |
| | | comEventTransferRecord.setEventResult(comEvent.getEventSucceed()); |
| | | comEventTransferRecord.setEventStatus(comEvent.getEventProcessStatus()); |
| | | comEventTransferRecord.setId(Snowflake.getId()); |
| | | saveEventImageList(comEventTransferRecord.getImages(), comEvent.getId(), comEventTransferRecord.getId(), 5); |
| | | return comEventTransferRecordService.insertComEventTransferRecord(comEventTransferRecord); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 大屏事件统计 |
| | | * @param indexDataDTO 查询入参 |