JTDisplayScreenController.java 1.3 KB
package com.skua.modules.threedimensional.controller;

import com.skua.core.api.vo.Result;
import com.skua.core.aspect.annotation.AutoLog;
import com.skua.modules.report.vo.JnhbReportData;
import com.skua.modules.threedimensional.service.IJTDisplayScreenService;
import com.skua.modules.threedimensional.vo.SysFactoryInfoVO;
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.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@Api(tags = "对外展示集团大屏")
@RestController
@RequestMapping("/jtDisplayscreendata")
public class JTDisplayScreenController {
    @Autowired
    private IJTDisplayScreenService displayScreenService ;

    @AutoLog(value = "厂站地图列表")
    @ApiOperation(value = "厂长地图列表", notes = "厂长地图列表")
    @GetMapping(value = "/factoryList")
    public Result<List<SysFactoryInfoVO>> factoryList() {
        Result<List<SysFactoryInfoVO>> result = new Result<>();
        List<SysFactoryInfoVO> list = displayScreenService.getFactoryList();
        result.setResult(list);
        return result;
    }
}