package com.dy.pmsReport.deviceReport; 
 | 
  
 | 
import com.dy.common.webUtil.BaseResponse; 
 | 
import com.dy.common.webUtil.BaseResponseUtils; 
 | 
import lombok.extern.slf4j.Slf4j; 
 | 
import org.springframework.beans.factory.annotation.Autowired; 
 | 
import org.springframework.web.bind.annotation.GetMapping; 
 | 
import org.springframework.web.bind.annotation.RequestMapping; 
 | 
import org.springframework.web.bind.annotation.RestController; 
 | 
  
 | 
import java.util.Map; 
 | 
  
 | 
/** 
 | 
 *报表返回设备信息 
 | 
 */ 
 | 
@Slf4j 
 | 
@RestController 
 | 
@RequestMapping(path = "device") 
 | 
public class DeviceReportCtl { 
 | 
    private DeviceReportSv sv; 
 | 
    @Autowired 
 | 
    public void setSv(DeviceReportSv sv) { 
 | 
        this.sv = sv; 
 | 
    } 
 | 
  
 | 
    @GetMapping(path = "getDeviceInfo") 
 | 
    public BaseResponse<Map<String, Object>> getDeviceInfo(String deviceNo) { 
 | 
        log.info("DeviceReportCtl.getDeviceInfo()"); 
 | 
        Map<String, Object> result = sv.getDeviceInfo(deviceNo); 
 | 
        return BaseResponseUtils.buildSuccess(result); 
 | 
    } 
 | 
} 
 |