| | |
| | | package com.ycl.service.caseHandler.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.bo.casePool.CasePoolIllegalBuildingDO; |
| | |
| | | medias = stringBuilder.toString(); |
| | | } |
| | | } |
| | | EventAddParamDto dto = EventAddParamDto.builder().y84(baseCase.getLatitude().toString()).x84(baseCase.getLongitude().toString()) |
| | | EventAddParamDto dto = EventAddParamDto.builder().y84(baseCase.getLatitude() != null ? baseCase.getLatitude().toString() : "") |
| | | .x84(baseCase.getLongitude() != null ? baseCase.getLongitude().toString() : "") |
| | | .source(11).address(baseCase.getSite()).eventDesc(eventDesc).eventSign(baseCase.getCode()).medias(medias).build(); |
| | | ResultResponseDto<EventAddResponseDto> result = cityPlatformService.addEvent(dto); |
| | | String msg = cityPlatformService.addEvent(dto); |
| | | ResultResponseDto result = JSONObject.parseObject(msg, ResultResponseDto.class); |
| | | if (result.getCode() == 0) { |
| | | EventAddResponseDto responseDto = result.getResult(); |
| | | EventAddResponseDto responseDto = JSONObject.parseObject(result.getResult(), EventAddResponseDto.class); |
| | | baseCase.setTaskCode(responseDto.getTaskcode()); |
| | | this.updateById(baseCase); |
| | | return null; |
| | |
| | | public String processEvent(Integer caseId) { |
| | | BaseCase baseCase = this.getById(caseId); |
| | | EventProcessParamDto paramDto = EventProcessParamDto.builder().eventSign(baseCase.getCode()).taskcode(baseCase.getTaskCode()).build(); |
| | | ResultResponseDto<EventProcessResponseDto> responseDto = cityPlatformService.getEventProcess(paramDto); |
| | | String msg = cityPlatformService.getEventProcess(paramDto); |
| | | ResultResponseDto responseDto = JSONObject.parseObject(msg, ResultResponseDto.class); |
| | | if (responseDto.getCode() == 0) { |
| | | EventProcessResponseDto eventProcessResponseDto = responseDto.getResult(); |
| | | EventProcessResponseDto eventProcessResponseDto = JSONObject.parseObject(responseDto.getResult(), EventProcessResponseDto.class); |
| | | /*********** 未处理市平台返回数据 ***************/ |
| | | return null; |
| | | } else { |