EventMapController.java 1.3 KB
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;
	}



}