| | |
| | | stateList.add(4); |
| | | stateList.add(9); |
| | | break; |
| | | default: |
| | | stateList.add(Integer.valueOf(state)); |
| | | break; |
| | | } |
| | | if (type == 1) { |
| | | queryList = baseCaseService.listViolationsPage(current, size, stateList, resource, code, categoryBig, categorySmall, street, site, startTime, endTime, violationsTypeId, videoId); |
| | |
| | | checkApiUtil.cockpit(params); |
| | | CommonResult.success(iBaseCaseService.statistics()); |
| | | StatisticsVO report = new StatisticsVO(); |
| | | report.setCount(2521L); |
| | | report.setCount(63L); |
| | | report.setRatio(BigDecimal.valueOf(0.9141)); |
| | | report.setUp(true); |
| | | StatisticsVO dispose = new StatisticsVO(); |
| | |
| | | |
| | | HttpEntity<String> stringHttpEntity = new HttpEntity<>(Base64Utils.encodeToString(objectMapper.writeValueAsBytes(mac)), httpHeaders); |
| | | ResponseEntity<String> response = restTemplate.postForEntity(url + "/sms/submit", sendReq, String.class); |
| | | if(com.baomidou.mybatisplus.core.toolkit.StringUtils.isNotBlank( response.getBody())) { |
| | | SendRes sendRes = objectMapper.readValue(response.getBody(), SendRes.class); |
| | | if (sendRes.getRspcod().equals("success")) { |
| | | return 2; |
| | |
| | | return 3; |
| | | } |
| | | } |
| | | return 3; |
| | | } |
| | | |
| | | //发送邮件 |
| | | @SneakyThrows |