whycxzp
2021-05-10 82903ec7eea4bc7f18466330bf728aa9580c657b
src/main/java/com/whyc/controller/CentralMonitorSysRTController.java
@@ -14,6 +14,9 @@
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
@RequestMapping("centralMonitorSys")
@RestController
@@ -29,6 +32,18 @@
        return service.getInfoByDevId(devId);
    }
    @GetMapping("inField")
    @ApiOperation(value = "查询告警阈值字段-进线屏")
    public Response<Map<String,List>> getInField(){
        return service.getInField();
    }
    @GetMapping("outField")
    @ApiOperation(value = "查询告警阈值字段-出线屏")
    public Response<Map<String,List>> getOutField(){
        return service.getOutField();
    }
    /**
     * ======History======
     * 历史查询时,因为历史记录是按照日期分表的,如果查询所有的日期表(union)后再分页,会导致速度极慢,故查询按照单个日期查询