EventMapController.java
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.skua.modules.emergency.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.skua.core.api.vo.Result;
import com.skua.core.aspect.annotation.AutoLog;
import com.skua.modules.emergency.entity.EmergencyRiskEvent;
import com.skua.modules.emergency.service.IEmergencyRiskEventService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.*;
/**
* 安全环保地图接口
*/
@Slf4j
@Api(tags="安全环保地图")
@RestController
@RequestMapping("/safetyEnviron/map")
public class EventMapController {
@Autowired
private IEmergencyRiskEventService emergencyRiskEventService;
/**
* 安全隐患事件数量
*/
@AutoLog(value = "安全隐患事件数量")
@ApiOperation(value="安全隐患事件数量", notes="安全隐患事件数量")
@GetMapping(value = "/getCount")
public Result<Map<String,Object>> getHandleCount(EmergencyRiskEvent emergencyRiskEvent){
Result<Map<String,Object>> result = new Result<>();
Map<String,Object> map = emergencyRiskEventService.getCount(emergencyRiskEvent);
result.setSuccess(true);
result.setResult(map);
return result;
}
}