增加 导出

master
wangh 1 year ago
parent 21085dba4b
commit b42da4cb47

@ -71,15 +71,14 @@ public class ApiController {
System.out.println(beginTime.toString());
return success(iApiService.queryPramList(beginTime, endTime));
}
/* @PostMapping("/home/exportParamList")
@PostMapping("/home/exportParamList")
@ResponseBody
public AjaxResult export(Date beginTime, Date endTime)
{
List<RecordRaramData> recordRaramData = iApiService.queryPramList(beginTime, endTime);
List<BaseDeviceInfo> list = baseDeviceInfoService.selectBaseDeviceInfoList(baseDeviceInfo);
ExcelUtil<BaseDeviceInfo> util = new ExcelUtil<BaseDeviceInfo>(BaseDeviceInfo.class);
return util.exportExcel(list, "base_device_info");
}*/
List<RecordRaramData> list = iApiService.queryPramList(beginTime, endTime);
ExcelUtil<RecordRaramData> util = new ExcelUtil(RecordRaramData.class);
return util.exportExcel(list, "数据记录");
}
@ApiOperation(tags = {"60脱水机"}, value = "设备介绍")
@GetMapping("/home/deviceInfo")
public AjaxResult deviceInfo() {

@ -1,17 +1,27 @@
package com.haiwei.manage.domain;
import com.haiwei.common.annotation.Excel;
/**
* @author wanghao
* @date 2023/8/31 14:01
*/
public class RecordRaramData {
private String time,
A,
A,
A,
A,
A,
A;
@Excel(name = "采集时间")
private String time;
@Excel(name = "一体机A转速")
private String A;
@Excel(name = "一体机A电流")
private String A;
@Excel(name = "切刀转速")
private String A;
@Excel(name = "切刀电流")
private String A;
@Excel(name = "机头温度")
private String A;
@Excel(name = "机头压力")
private String A;
public String getTime() {
return time;

Loading…
Cancel
Save