| | |
| | | import com.panzhihua.service_community.api.ComSanShuoEventTransferRecordController; |
| | | import com.panzhihua.service_community.dao.ComActDAO; |
| | | import com.panzhihua.service_community.dao.ComEventMapper; |
| | | import com.panzhihua.service_community.dao.ComSanshuoExpertDao; |
| | | import com.panzhihua.service_community.dao.ComStreetDAO; |
| | | import com.panzhihua.service_community.entity.*; |
| | | import com.panzhihua.service_community.model.dos.ComActDO; |
| | |
| | | import com.panzhihua.service_community.service.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.RandomUtils; |
| | | import org.checkerframework.checker.units.qual.A; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.*; |
| | |
| | | |
| | | @Resource |
| | | private CommediateTypeService commediateTypeService; |
| | | |
| | | @Resource |
| | | private ComSanshuoExpertDao comSanshuoExpertDao; |
| | | |
| | | |
| | | @Override |
| | |
| | | //失败后转交三说会堂 |
| | | comEvent.setSolve(0); |
| | | comEvent.setDistribution(0); |
| | | comEvent.setConciliation(0); |
| | | //comEvent.setConciliation(0); |
| | | comEvent.setEventProcessStatus(2); |
| | | comEvent.setArchive(0); |
| | | //comEvent.setChangeExpert(0); |
| | | } |
| | | else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventSucceed().equals(2)){ |
| | |
| | | comEventDetailVO.setImages(comEventRequestImageVO); |
| | | map.put("specter", specter); |
| | | map.put("eventDetail", comEventDetailVO); |
| | | List<ComEventTransferRecord> archiveLog=new ArrayList<>(); |
| | | List<ComEventTransferRecord> transferRecord = comEventTransferRecordService.list(new QueryWrapper<ComEventTransferRecord>().lambda().eq(ComEventTransferRecord::getEventId, id).orderByDesc(ComEventTransferRecord::getCreateAt)); |
| | | transferRecord.forEach(comEventTransferRecord -> { |
| | | 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); |
| | | if (comEventTransferRecord.getEventStatus().equals(7)){ |
| | | map.put("archiveLog", comEventTransferRecord); |
| | | archiveLog.add(comEventTransferRecord); |
| | | } |
| | | }); |
| | | map.put("archiveLog", archiveLog); |
| | | //迭代器迭代删除归档记录 |
| | | Iterator<ComEventTransferRecord> iterator = transferRecord.iterator(); |
| | | while (iterator.hasNext()){ |
| | |
| | | comEvent.setUserType(9); |
| | | } |
| | | } |
| | | log.info("当前userType===="+comEvent.getUserType()); |
| | | List<ComEventCalculateVO> calculateList = baseMapper.calculate(comEvent); |
| | | ComEventCalculateVO comEventCalculateVO =new ComEventCalculateVO(); |
| | | comEventCalculateVO.setStatus("0"); |
| | |
| | | vo.setSuccessRate(NumberUtil.div(vo.getSuccess(),vo.getAccepted(),2)); |
| | | } |
| | | } |
| | | vo.setExpert(comSanshuoExpertDao.selectExpertCount(indexDataDTO)); |
| | | //查询当前级别下的专家 |
| | | //折线图X轴 |
| | | List<Date> dates = pastTwelveMoth(); |
| | | vo.setX(getYAndM(dates)); |
| | |
| | | |
| | | @Override |
| | | public R listCommunityScreen() { |
| | | return null; |
| | | return R.ok(comActDAO.selectList(new QueryWrapper<ComActDO>().lambda().eq(ComActDO::getAppId, "wx0cef797390444b75"))); |
| | | } |
| | | |
| | | public String typeToName(Integer type){ |
| | |
| | | return "社区调解站受理"; |
| | | case 4: |
| | | return "区三说会堂受理"; |
| | | case 5: |
| | | return "专家受理"; |
| | | } |
| | | return null; |
| | | } |