package com.hxzkappboot.controller;
|
|
|
import com.hxzkappboot.pojo.TbFence;
|
import com.hxzkappboot.pojo.TbTaskScheduling;
|
import com.hxzkappboot.service.TbFenceService;
|
import com.hxzkappboot.service.TbTaskSchedulingService;
|
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.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.text.ParseException;
|
import java.util.ArrayList;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 前端控制器
|
* </p>
|
*
|
* @author wangfei
|
* @since 2024-11-26
|
*/
|
@RestController
|
//@RequestMapping("/tb-task-scheduling")
|
public class TbTaskSchedulingController {
|
|
@Autowired
|
TbTaskSchedulingService tbTaskSchedulingService;
|
|
@GetMapping({"/api/wx/earlyWarning"})
|
public R earlyWarning() throws ParseException {
|
R response ;
|
List<TbTaskScheduling> fenceList = new ArrayList();
|
fenceList = tbTaskSchedulingService.earlyWarning();
|
response = new R(StatusCode.Success);
|
response.setData(fenceList);
|
return response;
|
}
|
|
}
|