package com.hxzkappboot.controller;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.hxzkappboot.pojo.PersonCesium;
|
import com.hxzkappboot.pojo.TbAchor;
|
import com.hxzkappboot.pojo.TbWarning;
|
import com.hxzkappboot.service.TbAchorService;
|
import com.hxzkappboot.service.TbWarningService;
|
import com.hxzkappboot.util.R;
|
import com.hxzkappboot.util.StatusCode;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.servlet.http.HttpServletRequest;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 前端控制器
|
* </p>
|
*
|
* @author wangfei
|
* @since 2024-03-08
|
*/
|
@RestController
|
//@RequestMapping("/tb-achor")
|
public class TbAchorController {
|
|
@Autowired
|
TbAchorService tbAchorService;
|
|
@GetMapping("/api/wx/findAchor")
|
public R findAll(Page page, String objectid,String company) {
|
R response;
|
IPage<TbAchor> ipage = tbAchorService.findAll(page,objectid,company);
|
response = new R(StatusCode.Success);
|
|
response.setData(ipage);
|
response.setOnline(tbAchorService.findonline(company));
|
response.setOffline(tbAchorService.findoffline(company));
|
return response;
|
}
|
|
@GetMapping("/api/wx/getBaseGPSCesium")
|
public R getBaseGPSCesium(String company) {
|
R response ;
|
response = new R(StatusCode.Success);
|
List<TbAchor> gpsList =tbAchorService.getBaseGPSCesium(company);
|
response.setData(gpsList);
|
return response;
|
}
|
|
}
|