48 lines
1.4 KiB
Java
48 lines
1.4 KiB
Java
|
|
package com.ruoyi.device.controller;
|
||
|
|
|
||
|
|
import com.ruoyi.common.core.web.controller.BaseController;
|
||
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
||
|
|
import com.ruoyi.common.core.web.page.TableDataInfo;
|
||
|
|
import com.ruoyi.device.domain.DeviceTemp;
|
||
|
|
import com.ruoyi.device.service.IDeviceTempService;
|
||
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
||
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 设备临时表Controller
|
||
|
|
*
|
||
|
|
* @author ruoyi
|
||
|
|
* @date 2026-01-15
|
||
|
|
*/
|
||
|
|
@RestController
|
||
|
|
@RequestMapping("/device/temp")
|
||
|
|
public class DeviceTempController extends BaseController
|
||
|
|
{
|
||
|
|
@Autowired
|
||
|
|
private IDeviceTempService deviceTempService;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 查询设备临时表列表
|
||
|
|
*/
|
||
|
|
@GetMapping("/list")
|
||
|
|
public TableDataInfo list(DeviceTemp deviceTemp)
|
||
|
|
{
|
||
|
|
startPage();
|
||
|
|
List<DeviceTemp> list = deviceTempService.selectDeviceTempList(deviceTemp);
|
||
|
|
return getDataTable(list);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取设备临时表详细信息
|
||
|
|
*/
|
||
|
|
@GetMapping(value = "/{id}")
|
||
|
|
public AjaxResult getInfo(@PathVariable("id") String id)
|
||
|
|
{
|
||
|
|
return success(deviceTempService.selectDeviceTempById(id));
|
||
|
|
}
|
||
|
|
}
|